Skip to content

Commit e79ead6

Browse files
committed
fix tests
1 parent d38c412 commit e79ead6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/test_import_dbparams.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,25 @@ def test_postgis_withandwithout_params(self):
5353
assert importer.run() == iliimporter.Importer.SUCCESS
5454

5555
# now we add the sslmode "require" by dbparams and it should fail
56-
importer.configuration.dbparam_map = {"sslmode": "require"}
56+
importer.configuration.base_configuration.dbparam_map = {"sslmode": "require"}
5757
assert importer.run() == iliimporter.Importer.ERROR
5858

5959
# change sslmode to "disable" by dbparams and it should succeed again
60-
importer.configuration.dbparam_map = {"sslmode": "disable"}
60+
importer.configuration.base_configuration.dbparam_map = {"sslmode": "disable"}
6161
assert importer.run() == iliimporter.Importer.SUCCESS
6262

6363
# now we add the readonly "true" by dbparams and it should fail
64-
importer.configuration.dbparam_map = {"sslmode": "disable", "readOnly": "true"}
64+
importer.configuration.base_configuration.dbparam_map = {
65+
"sslmode": "disable",
66+
"readOnly": "true",
67+
}
6568
assert importer.run() == iliimporter.Importer.ERROR
6669

6770
# change readonly to "false" by dbparams and it should succeed again
68-
importer.configuration.dbparam_map = {"sslmode": "disable", "readOnly": "false"}
71+
importer.configuration.base_configuration.dbparam_map = {
72+
"sslmode": "disable",
73+
"readOnly": "false",
74+
}
6975
assert importer.run() == iliimporter.Importer.SUCCESS
7076

7177
def print_info(self, text):

0 commit comments

Comments
 (0)