From 8cd6b237bbbf67a410611473eb56fde7b7038771 Mon Sep 17 00:00:00 2001 From: dextmorgn Date: Sat, 11 Apr 2026 13:18:20 +0200 Subject: [PATCH] fix(core/tests): update failing test --- .../tests/repositories/test_investigation_repository.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/flowsint-core/tests/repositories/test_investigation_repository.py b/flowsint-core/tests/repositories/test_investigation_repository.py index e8fedf8..31edf69 100644 --- a/flowsint-core/tests/repositories/test_investigation_repository.py +++ b/flowsint-core/tests/repositories/test_investigation_repository.py @@ -72,19 +72,16 @@ class TestInvestigationRepository: inv = InvestigationFactory(owner=user) repo = InvestigationRepository(db_session) - result = repo.get_with_relations(inv.id, user.id) + result = repo.get_with_relations(inv.id) assert result is not None assert result.id == inv.id - def test_get_with_relations_wrong_owner(self, db_session): + def test_get_with_relations_not_found(self, db_session): self._setup(db_session) - user = ProfileFactory() - inv = InvestigationFactory(owner=user) - other_user = ProfileFactory() repo = InvestigationRepository(db_session) - result = repo.get_with_relations(inv.id, other_user.id) + result = repo.get_with_relations(uuid4()) assert result is None def test_get_by_id_and_owner(self, db_session):