Skip to content

Commit

Permalink
fix(tests): assertions;
Browse files Browse the repository at this point in the history
- Set correct plugin calls for new implement.
  • Loading branch information
JVickery-TBS committed Jul 23, 2024
1 parent 4610232 commit c67f87f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/validation/tests/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_can_validate_called_on_update_sync(self, mock_validation,

assert mock_validation.called
assert _get_data_plugin_calls() == 2
assert _get_pipe_plugin_calls() == 1
assert _get_pipe_plugin_calls() == 2

def test_can_validate_called_on_update_sync_no_validation(
self, mock_validation, resource_factory):
Expand All @@ -125,7 +125,7 @@ def test_can_validate_called_on_update_sync_no_validation(
call_action('resource_update', **resource)

assert _get_data_plugin_calls() == 2
assert _get_pipe_plugin_calls() == 1
assert _get_pipe_plugin_calls() == 2
assert not mock_validation.called


Expand Down Expand Up @@ -176,7 +176,7 @@ def test_can_validate_called_on_update_async(self, mock_validation,
call_action('resource_update', **resource)

assert _get_data_plugin_calls() == 3
assert _get_pipe_plugin_calls() == 1
assert _get_pipe_plugin_calls() == 3
assert mock_validation.called

def test_can_validate_called_on_update_async_no_validation(
Expand All @@ -197,5 +197,5 @@ def test_can_validate_called_on_update_async_no_validation(
call_action('resource_update', **resource)

assert _get_data_plugin_calls() == 2
assert _get_pipe_plugin_calls() == 1
assert _get_pipe_plugin_calls() == 2
assert not mock_validation.called

0 comments on commit c67f87f

Please sign in to comment.