Also check unset functionality in test
@@ -28,13 +28,14 @@ class TestBasicLoading(ConfigurationFileIOMixin):
assert "test.hello=1" in result.stdout
def test_modification_pipeline(self, script):
- script.pip(
- "config", "get", "test.blah", expect_error=True
- )
+ script.pip("config", "get", "test.blah", expect_error=True)
script.pip("config", "set", "test.blah", "1")
- result4 = script.pip("config", "get", "test.blah")
- assert result4.stdout.strip() == "1"
+ result = script.pip("config", "get", "test.blah")
+ assert result.stdout.strip() == "1"
+
+ script.pip("config", "unset", "test.blah")
+ script.pip("config", "get", "test.blah", expect_error=True)
def test_listing_is_correct(self, script):
script.pip("config", "set", "test.listing-beta", "2")
