Test config write
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
-
