Skip to content

Commit da124f9

Browse files
committed
fix(tests): subrequest params;
- Fixed fixture's `SubRequest` attribute.
1 parent 3470de3 commit da124f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ckanext/xloader/tests/test_plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
@pytest.fixture
1616
def mock_toolkit_config(request):
1717
with mock.patch('ckan.plugins.toolkit.config.get') as mock_get:
18-
mock_get.return_value = request.param
18+
mock_get.return_value = request.params
1919
yield mock_get
2020

2121

2222
@pytest.fixture
2323
def mock_xloader_formats(request):
2424
with mock.patch('ckanext.xloader.plugin.XLoaderFormats.is_it_an_xloader_format') as mock_is_xloader_format:
25-
mock_is_xloader_format.return_value = request.param
25+
mock_is_xloader_format.return_value = request.params
2626
yield mock_is_xloader_format
2727

2828

0 commit comments

Comments
 (0)