mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-23 23:48:16 +01:00
Delete unused craftbeerpi.db
This commit is contained in:
parent
a187ec64e1
commit
86bd6c5a6b
4 changed files with 0 additions and 17 deletions
|
@ -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)
|
||||||
|
|
BIN
craftbeerpi.db
BIN
craftbeerpi.db
Binary file not shown.
Binary file not shown.
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue