Delete unused craftbeerpi.db

This commit is contained in:
Philipp Grathwohl 2022-02-17 11:46:24 +00:00
parent a187ec64e1
commit 86bd6c5a6b
4 changed files with 0 additions and 17 deletions

View file

@ -114,13 +114,6 @@ def copy_splash():
shutil.copy(srcfile, destfile) shutil.copy(srcfile, destfile)
print("Splash Srceen created") 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): def recursive_chown(path, owner, group):
for dirpath, dirnames, filenames in os.walk(path): for dirpath, dirnames, filenames in os.walk(path):
shutil.chown(dirpath, owner, group) shutil.chown(dirpath, owner, group)

Binary file not shown.

Binary file not shown.

View file

@ -29,16 +29,6 @@ class ConfigTestCase(AioHTTPTestCase):
assert self.cbpi.config.get("CBPI_TEST_2", 1) == value 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 @unittest_run_loop
async def test_http_set(self): async def test_http_set(self):
value = str(time.time()) value = str(time.time())