From c67f87f2ba28121907d94720c7df8148da19ebae Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Tue, 23 Jul 2024 14:36:43 +0000 Subject: [PATCH] fix(tests): assertions; - Set correct plugin calls for new implement. --- ckanext/validation/tests/test_interfaces.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ckanext/validation/tests/test_interfaces.py b/ckanext/validation/tests/test_interfaces.py index 36758352..e0b3ed6b 100644 --- a/ckanext/validation/tests/test_interfaces.py +++ b/ckanext/validation/tests/test_interfaces.py @@ -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): @@ -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 @@ -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( @@ -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