From f11ac421686af7a163a08206d05111b6f4fde170 Mon Sep 17 00:00:00 2001 From: Adimanv Date: Fri, 27 Sep 2024 19:39:05 +0530 Subject: [PATCH] update to test app --- database-cleanup/tests/test_app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/database-cleanup/tests/test_app.py b/database-cleanup/tests/test_app.py index ae41373..fdc12db 100644 --- a/database-cleanup/tests/test_app.py +++ b/database-cleanup/tests/test_app.py @@ -54,11 +54,9 @@ def _run_cli(func, args: list[str]): @pytest.fixture def site(session): # Create a new site (this way we know it won't have any forecasts yet). - client = str(uuid.uuid4()) - session.add(client) - session.commit() - site = SiteSQL( ml_id=hash(uuid.uuid4()) % 2147483647) + session.add(site) + session.commit() return site