From: Karl O. Pinc Date: Sat, 16 Mar 2024 21:26:54 +0000 (-0500) Subject: Change name: instance_method_mock_fixture() -> late_instance_mock_fixture() X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=06f5edf80a302e7ff1d58a66b84674558db8ad6d;p=pgwui_upload_core Change name: instance_method_mock_fixture() -> late_instance_mock_fixture() --- diff --git a/tests/test_pgwui_upload_core.py b/tests/test_pgwui_upload_core.py index 782a316..804ecf9 100644 --- a/tests/test_pgwui_upload_core.py +++ b/tests/test_pgwui_upload_core.py @@ -41,7 +41,7 @@ def test_pgwui_upload_core_is_pgwui_component(pgwui_component_entry_point): # includeme() -mock_scan = testing.instance_method_mock_fixture('scan') +mock_scan = testing.late_instance_mock_fixture('scan') @pytest.mark.unittest diff --git a/tests/views/test_upload.py b/tests/views/test_upload.py index 4afc17a..9eb8c52 100644 --- a/tests/views/test_upload.py +++ b/tests/views/test_upload.py @@ -115,17 +115,17 @@ def isolate_upload_view(monkeypatch, pyramid_request_config): # BaseTableUploadHandler.__init__() -mock_tuh_init = testing.instance_method_mock_fixture('__init__') +mock_tuh_init = testing.late_instance_mock_fixture('__init__') # BaseTableUploadHandler.resolve_table() -mock_resolve_table = testing.instance_method_mock_fixture('resolve_table') +mock_resolve_table = testing.late_instance_mock_fixture('resolve_table') # BaseTableUploadHandler.good_table() -mock_good_table = testing.instance_method_mock_fixture('good_table') +mock_good_table = testing.late_instance_mock_fixture('good_table') @pytest.fixture