Test config write
MODIFY
tests/test_config.py
tests/test_config.py
def test_config():
config = factory.config()
+ config.save()
+ config.initialized = False
+ assert config["PLEX_TOKEN"] is None
+
+ config.save()
+ assert config["PLEX_TOKEN"] is None
+
environ["PLEX_TOKEN"] = "Foo"
config.initialized = False
assert config["PLEX_TOKEN"] == "Foo"
@@ -25,4 +32,3 @@ def test_config():
environ["PLEX_TOKEN"] = "None"
config.initialized = False
assert config["PLEX_TOKEN"] is None
-

Test config write