Skip to content

Commit

Permalink
Fixes a broken test (test_operation.py)
Browse files Browse the repository at this point in the history
Thanks to uruwhy:

> Those tests in particular need to manually store the operation fact
> sources in the data service - the data service loads fact sources on
> server startup, so I essentially had to replicate that behavior with
> the dummy fact sources for the unit test
  • Loading branch information
jean-baptiste-perez-bib committed Oct 7, 2024
1 parent f408e3b commit 3cd994c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/objects/test_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ def test_without_learning_parser(self, event_loop, app_svc, contact_svc, data_sv

def test_facts(self, event_loop, app_svc, contact_svc, file_svc, data_svc, learning_svc, fire_event_mock,
op_with_learning_and_seeded, make_test_link, make_test_result, knowledge_svc):
event_loop.run_until_complete(data_svc.store(op_with_learning_and_seeded.source))
test_link = make_test_link(9876)
op_with_learning_and_seeded.add_link(test_link)

Expand Down

0 comments on commit 3cd994c

Please sign in to comment.