diff --git a/cbpi/cli.py b/cbpi/cli.py index ab3886c..043b73a 100644 --- a/cbpi/cli.py +++ b/cbpi/cli.py @@ -114,13 +114,6 @@ def copy_splash(): shutil.copy(srcfile, destfile) print("Splash Srceen created") - -def clear_db(): - import os.path - if os.path.exists(os.path.join(".", "craftbeerpi.db")) is True: - os.remove(os.path.join(".", "craftbeerpi.db")) - print("database cleared") - def recursive_chown(path, owner, group): for dirpath, dirnames, filenames in os.walk(path): shutil.chown(dirpath, owner, group) diff --git a/craftbeerpi.db b/craftbeerpi.db deleted file mode 100644 index 4df71f1..0000000 Binary files a/craftbeerpi.db and /dev/null differ diff --git a/tests/craftbeerpi.db b/tests/craftbeerpi.db deleted file mode 100644 index eec4e68..0000000 Binary files a/tests/craftbeerpi.db and /dev/null differ diff --git a/tests/test_config.py b/tests/test_config.py index 277b0c5..90c7770 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -29,16 +29,6 @@ class ConfigTestCase(AioHTTPTestCase): assert self.cbpi.config.get("CBPI_TEST_2", 1) == value - @unittest_run_loop - async def test_add(self): - value = str(time.time()) - key = "CBPI_TEST_3" - async with aiosqlite.connect("./craftbeerpi.db") as db: - await db.execute("DELETE FROM config WHERE name = ? ", (key,)) - await db.commit() - - await self.cbpi.config.add(key, value, type=ConfigType.STRING, description="test") - @unittest_run_loop async def test_http_set(self): value = str(time.time())