@@ -382,24 +382,24 @@ def test_connection_config(self, mocker, table_dataset, connection_config, key):
382
382
("credentials_config" , "key" ),
383
383
[
384
384
(
385
- "postgres://xxxxx:yyyyyy@xxxx .postgres.database.azure.com:5432/postgres" ,
385
+ "postgres://xxxxxx .postgres.database.azure.com:5432/postgres" ,
386
386
(
387
387
("backend" , "postgres" ),
388
388
(
389
389
"con" ,
390
- "postgres://xxxxx:yyyyyy@xxxx .postgres.database.azure.com:5432/postgres" ,
390
+ "postgres://xxxxxx .postgres.database.azure.com:5432/postgres" ,
391
391
),
392
392
),
393
393
),
394
394
(
395
395
{
396
- "con" : "postgres://xxxxx:yyyyyy @xxxx.postgres.database.azure.com:5432/postgres"
396
+ "con" : "postgres://xxxxxx @xxxx.postgres.database.azure.com:5432/postgres"
397
397
},
398
398
(
399
399
("backend" , "postgres" ),
400
400
(
401
401
"con" ,
402
- "postgres://xxxxx:yyyyyy @xxxx.postgres.database.azure.com:5432/postgres" ,
402
+ "postgres://xxxxxx @xxxx.postgres.database.azure.com:5432/postgres" ,
403
403
),
404
404
),
405
405
),
@@ -455,7 +455,7 @@ def test_get_backend_name_dict_without_backend_or_con(self):
455
455
456
456
def test_get_backend_name_string_with_scheme (self ):
457
457
ds = TableDataset (table_name = "t" )
458
- ds ._credentials = "mysql://uxxxxx:yyyyyy @host:3306/dbname"
458
+ ds ._credentials = "mysql://xxxxxx @host:3306/dbname"
459
459
assert ds ._get_backend_name () == "mysql"
460
460
461
461
def test_get_backend_name_string_without_scheme (self ):
@@ -466,7 +466,7 @@ def test_get_backend_name_string_without_scheme(self):
466
466
def test_get_backend_name_dict_with_con_and_scheme (self ):
467
467
ds = TableDataset (table_name = "t" )
468
468
ds ._credentials = {
469
- "con" : "postgres://user:pass @host:5432/dbname" ,
469
+ "con" : "postgres://xxxxxx @host:5432/dbname" ,
470
470
"some_other" : "value" ,
471
471
}
472
472
assert ds ._get_backend_name () == "postgres"
0 commit comments