From: Karl O. Pinc Date: Thu, 21 Mar 2024 23:04:25 +0000 (-0500) Subject: Fix entrypoint tests X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=9e2919dd0d5f51a6095aac7e0a2479552a8979e1;p=pgwui_bulk_upload Fix entrypoint tests --- diff --git a/tests/test_check_settings.py b/tests/test_check_settings.py index 4d1f6a7..9d22906 100644 --- a/tests/test_check_settings.py +++ b/tests/test_check_settings.py @@ -36,8 +36,7 @@ def test_check_setting_is_pgwui_check_settings( pgwui_check_settings_entry_point): '''Ensure that pgwui_bulk_upload has a pgwui.check_settings entry point ''' - assert (pgwui_check_settings_entry_point( - 'pgwui_bulk_upload.check_settings') is True) + assert pgwui_check_settings_entry_point('.pgwui_bulk_upload') is True # Mocks diff --git a/tests/test_pgwui_bulk_upload.py b/tests/test_pgwui_bulk_upload.py index 048ccb4..49017f9 100644 --- a/tests/test_pgwui_bulk_upload.py +++ b/tests/test_pgwui_bulk_upload.py @@ -34,9 +34,9 @@ pytest_plugins = ("pgwui",) # Module packaging test def test_pgwui_bulk_upload_is_pgwui_component(pgwui_component_entry_point): - '''Ensure that pgwui_bulk_upload is a pgwui.component entry point + '''Ensure that ".pgwui_bulk_upload" is a pgwui.component entry point ''' - assert pgwui_component_entry_point('pgwui_bulk_upload') is True + assert pgwui_component_entry_point('.pgwui_bulk_upload') is True # establish_settings()