@@ -24,17 +24,11 @@ def test_user_loading(self) -> None:
2424 self .configuration .load ()
2525 assert self .configuration .get_value ("test.hello" ) == "2"
2626
27- def test_base_loading (self ) -> None :
28- self .patch_configuration (kinds .BASE , {"test.hello" : "3" })
29-
30- self .configuration .load ()
31- assert self .configuration .get_value ("test.hello" ) == "3"
32-
3327 def test_site_loading (self ) -> None :
34- self .patch_configuration (kinds .SITE , {"test.hello" : "4 " })
28+ self .patch_configuration (kinds .SITE , {"test.hello" : "3 " })
3529
3630 self .configuration .load ()
37- assert self .configuration .get_value ("test.hello" ) == "4 "
31+ assert self .configuration .get_value ("test.hello" ) == "3 "
3832
3933 def test_environment_config_loading (self , monkeypatch : pytest .MonkeyPatch ) -> None :
4034 contents = """
@@ -113,15 +107,6 @@ def test_no_such_key_error_message_missing_option(self) -> None:
113107 with pytest .raises (ConfigurationError , match = pat ):
114108 self .configuration .get_value ("global.index-url" )
115109
116- def test_overrides_normalization (self ) -> None :
117- # Check that normalized names are used in precedence calculations.
118- # Reminder: USER has higher precedence than GLOBAL.
119- self .patch_configuration (kinds .USER , {"test.hello-world" : "1" })
120- self .patch_configuration (kinds .GLOBAL , {"test.hello_world" : "0" })
121- self .configuration .load ()
122-
123- assert self .configuration .get_value ("test.hello_world" ) == "1"
124-
125110
126111class TestConfigurationPrecedence (ConfigurationMixin ):
127112 # Tests for methods to that determine the order of precedence of
@@ -148,13 +133,6 @@ def test_env_overides_global(self) -> None:
148133
149134 assert self .configuration .get_value ("test.hello" ) == "0"
150135
151- def test_site_overides_base (self ) -> None :
152- self .patch_configuration (kinds .BASE , {"test.hello" : "2" })
153- self .patch_configuration (kinds .SITE , {"test.hello" : "1" })
154- self .configuration .load ()
155-
156- assert self .configuration .get_value ("test.hello" ) == "1"
157-
158136 def test_site_overides_user (self ) -> None :
159137 self .patch_configuration (kinds .USER , {"test.hello" : "2" })
160138 self .patch_configuration (kinds .SITE , {"test.hello" : "1" })
@@ -169,13 +147,6 @@ def test_site_overides_global(self) -> None:
169147
170148 assert self .configuration .get_value ("test.hello" ) == "1"
171149
172- def test_base_overides_user (self ) -> None :
173- self .patch_configuration (kinds .USER , {"test.hello" : "2" })
174- self .patch_configuration (kinds .BASE , {"test.hello" : "1" })
175- self .configuration .load ()
176-
177- assert self .configuration .get_value ("test.hello" ) == "1"
178-
179150 def test_user_overides_global (self ) -> None :
180151 self .patch_configuration (kinds .GLOBAL , {"test.hello" : "3" })
181152 self .patch_configuration (kinds .USER , {"test.hello" : "2" })
0 commit comments