A live bird collage card for your Home Assistant dashboard.
last lint
mcguirepr89e3db620086fd
diff --git a/tests/test_settings_parse.py b/tests/test_settings_parse.pyindex de68b9f1..82b56789 100644--- a/tests/test_settings_parse.py+++ b/tests/test_settings_parse.py@@ -1,6 +1,7 @@from scripts.utils.parse_settings import config_to_settingsimport tempfile+def test():text = """LATITUDE=32.0LONGITUDE=-73.0@@ -32,7 +33,7 @@ DATABASE_LANG=enLAST_RUN=THIS_RUN=IDFILE=/home/pi/BirdNET-Pi/IdentifiedSoFar.txt"""-+filename = tempfile.NamedTemporaryFile(suffix='.txt', delete=False)with open(filename.name, 'w', encoding='utf8', newline='') as f:f.write(text)@@ -40,5 +41,4 @@ IDFILE=/home/pi/BirdNET-Pi/IdentifiedSoFar.txt"""settings = config_to_settings(filename.name)assert(settings["APPRISE_NOTIFICATION_TITLE"] == "Bird!")assert(settings["FULL_DISK"] == "purge")- assert(settings["OVERLAP"] == "0.0") # Yes, it's a string at this point.-+ assert(settings["OVERLAP"] == "0.0") # Yes, it's a string at this point.