Skip to content

Commit

Permalink
update MockWFI and ignore archive_workflow to fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leahh committed Oct 22, 2024
1 parent 90dce1e commit 04c253f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beeflow/tests/mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ def execute_workflow(self):
"""Fake executing a workflow."""
pass # noqa

def export_graphml(self):
"""Fake exporting a graphml of a workflow."""
pass


class MockGDBDriver:
"""A mock GDB driver.
Expand Down
1 change: 1 addition & 0 deletions beeflow/tests/test_wf_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def test_cancel_workflow(client, mocker, setup_teardown_workflow, temp_db):
return_value=MockWFI())
mocker.patch('beeflow.wf_manager.resources.wf_utils.get_db_path', temp_db.db_file)
mocker.patch('beeflow.wf_manager.resources.wf_actions.db_path', temp_db.db_file)
mocker.patch('beeflow.wf_manager.resources.wf_actions.archive_workflow', return_value=None)

wf_name = 'wf'
workdir = 'dir'
Expand Down

0 comments on commit 04c253f

Please sign in to comment.