bugfix econdary_workbench_link tag

This commit is contained in:
Cayo Puigdefabregas 2020-07-22 14:25:42 +02:00
parent 3179bba9e9
commit b01c241685
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ def test_tag_secondary_workbench_link_find(user: UserClient):
"""Creates and consumes tags with a secondary id, linking them
through Workbench to a device
and getting them through search."""
t = Tag('foo', secondary='bar')
t = Tag('foo', secondary='bar', owner_id=user.user['id'])
db.session.add(t)
db.session.flush()
assert Tag.from_an_id('bar').one() == t