File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments