Skip to content

Commit

Permalink
tests: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Jul 10, 2023
1 parent 2ee0427 commit 551c975
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/integration/refextract/test_refextract_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def test_match_reference_doesnt_touch_curated(isolated_app):


@patch(
'inspirehep.modules.refextract.matcher.match',
'inspirehep.modules.workflows.tasks.actions.match_references_hep',
return_value=[
{
'_score': 1.6650109,
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/workflows/test_workflows_tasks_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ def test_validate_record_raises_when_record_is_invalid():
@patch('inspirehep.modules.workflows.tasks.actions.create_journal_kb_dict', return_value={})
@patch('inspirehep.modules.workflows.tasks.actions.get_document_in_workflow')
@patch(
'inspirehep.modules.refextract.matcher.match',
'inspirehep.modules.workflows.tasks.actions.match_references_hep',
return_value=iter([])
)
def test_refextract_from_text(mock_match, mock_get_document_in_workflow, mock_create_journal_kb_dict):
Expand Down Expand Up @@ -1204,7 +1204,7 @@ def test_refextract_from_text(mock_match, mock_get_document_in_workflow, mock_cr

@patch('inspirehep.modules.workflows.tasks.actions.create_journal_kb_dict', return_value={})
@patch(
'inspirehep.modules.refextract.matcher.match',
'inspirehep.modules.workflows.tasks.actions.match_references_hep',
return_value=iter([])
)
def test_refextract_from_raw_refs(mock_create_journal_dict, mock_match):
Expand Down Expand Up @@ -1236,7 +1236,7 @@ def test_refextract_from_raw_refs(mock_create_journal_dict, mock_match):

@patch('inspirehep.modules.workflows.tasks.actions.create_journal_kb_dict', return_value={})
@patch(
'inspirehep.modules.refextract.matcher.match',
'inspirehep.modules.workflows.tasks.actions.match_references_hep',
return_value=iter([])
)
def test_refextract_valid_refs_from_raw_refs(mock_create_journal_dict, mock_match):
Expand Down Expand Up @@ -1272,7 +1272,7 @@ def test_refextract_valid_refs_from_raw_refs(mock_create_journal_dict, mock_matc
@patch('inspirehep.modules.workflows.tasks.actions.create_journal_kb_dict', return_value={})
@patch('inspirehep.modules.workflows.tasks.actions.get_document_in_workflow')
@patch(
'inspirehep.modules.refextract.matcher.match',
'inspirehep.modules.workflows.tasks.actions.match_references_hep',
return_value=iter([])
)
def test_refextract_valid_refs_from_text(mock_match, mock_get_document_in_workflow, mock_create_journal_kb_dict):
Expand Down

0 comments on commit 551c975

Please sign in to comment.