Skip to content

Commit

Permalink
fix(tests): subrequest params;
Browse files Browse the repository at this point in the history
- Fixed fixture's `SubRequest` attribute.
  • Loading branch information
JVickery-TBS committed Jan 31, 2024
1 parent 3470de3 commit da124f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/xloader/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
@pytest.fixture
def mock_toolkit_config(request):
with mock.patch('ckan.plugins.toolkit.config.get') as mock_get:
mock_get.return_value = request.param
mock_get.return_value = request.params
yield mock_get


@pytest.fixture
def mock_xloader_formats(request):
with mock.patch('ckanext.xloader.plugin.XLoaderFormats.is_it_an_xloader_format') as mock_is_xloader_format:
mock_is_xloader_format.return_value = request.param
mock_is_xloader_format.return_value = request.params
yield mock_is_xloader_format


Expand Down

0 comments on commit da124f9

Please sign in to comment.