diff --git a/tests/conftest.py b/tests/conftest.py index bd6209ed..0f4240ef 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -125,7 +125,8 @@ def file(name: str) -> dict: def tag_id(app: Devicehub) -> str: """Creates a tag and returns its id.""" with app.app_context(): - t = Tag(id='foo') + user = User.query.one() + t = Tag(id='foo', owner_id=user.id) db.session.add(t) db.session.commit() return t.id