From 9e2919dd0d5f51a6095aac7e0a2479552a8979e1 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Thu, 21 Mar 2024 18:04:25 -0500 Subject: [PATCH] Fix entrypoint tests --- tests/test_check_settings.py | 3 +-- tests/test_pgwui_bulk_upload.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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() -- 2.34.1