Skip to content

Commit

Permalink
tests: fix mock module paths
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Feb 13, 2025
1 parent cb83fc8 commit 02bc43a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/fixtures/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def extra_entry_points():
"""Vocabularies entry points."""
return {
"invenio_rdm_records.fixtures": [
"vocabularies_A = mock_module_A.fixtures.vocabularies",
"vocabularies_B = mock_module_B.fixtures.vocabularies",
"vocabularies_A = tests.fixtures.mock_module_A.fixtures.vocabularies",
"vocabularies_B = tests.fixtures.mock_module_B.fixtures.vocabularies",
],
}

Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/load_error/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def extra_entry_points():
"""
return {
"invenio_rdm_records.fixtures": [
"vocabularies_A = conflicting_module_A.fixtures.vocabularies",
"vocabularies_B = conflicting_module_B.fixtures.vocabularies",
"vocabularies_A = tests.fixtures.load_error.conflicting_module_A.fixtures.vocabularies",
"vocabularies_B = tests.fixtures.load_error.conflicting_module_B.fixtures.vocabularies",
],
}

Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/load_error/test_vocabularies_load_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def test_conflicting_load(app):
expected_messages = set(
[
"Vocabulary 'resourcetypes' cannot have multiple sources "
"['conflicting_module_A.fixtures.vocabularies', "
"'conflicting_module_B.fixtures.vocabularies']",
"['tests.fixtures.load_error.conflicting_module_A.fixtures.vocabularies', "
"'tests.fixtures.load_error.conflicting_module_B.fixtures.vocabularies']",
"Vocabulary 'MeSH' cannot have multiple sources "
"['conflicting_module_A.fixtures.vocabularies', "
"'conflicting_module_B.fixtures.vocabularies']",
"['tests.fixtures.load_error.conflicting_module_A.fixtures.vocabularies', "
"'tests.fixtures.load_error.conflicting_module_B.fixtures.vocabularies']",
]
)
assert expected_messages == set(messages)

0 comments on commit 02bc43a

Please sign in to comment.