Skip to content

Commit

Permalink
cleanup db
Browse files Browse the repository at this point in the history
  • Loading branch information
wkrzywiec committed Nov 30, 2024
1 parent a5b8986 commit 0615dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/mankkoo/tests/controller/main_controller_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ def test_total_history(test_client):


def insert_view(name: str, content: dict | list):
db.execute("TRUNCATE views;") # not sure why this is needed since before each test db is cleaned up
db.execute(f"INSERT INTO views (name, content) VALUES ('{name}', '{json.dumps(content)}'::jsonb);")

0 comments on commit 0615dfb

Please sign in to comment.