diff --git a/tests/integration/test_database_client_celery.py b/tests/integration/test_database_client_celery.py index 997a84b6..6c8e9b97 100644 --- a/tests/integration/test_database_client_celery.py +++ b/tests/integration/test_database_client_celery.py @@ -12,7 +12,7 @@ @pytest.fixture -def map_frame_old(flask_app, uuid_create, map_frame): +def map_frame_old(flask_app, uuid_create, map_frame, bbox): """Mock map frame which is uploaded a year ago.""" # NOTE: Maybe mocking a map frame in the database with fake file with flask_app.app_context(): @@ -26,9 +26,9 @@ def map_frame_old(flask_app, uuid_create, map_frame): map_frame.seek(0) with flask_app.app_context(): - update_query = "UPDATE map_frame SET file = %s WHERE uuid = %s" + update_query = "UPDATE map_frame SET file = %s, bbox = %s WHERE uuid = %s" with client_flask.open_connection().cursor() as curs: - curs.execute(update_query, [map_frame.getvalue(), uuid_create]) + curs.execute(update_query, [map_frame.getvalue(), str(bbox), uuid_create]) map_frame.seek(0)