From: Karl O. Pinc Date: Thu, 21 Mar 2024 23:21:04 +0000 (-0500) Subject: Fix entrypoint tests X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=1ac1e601600741d474601d1b3b327ec575024023;p=pgwui_copy Fix entrypoint tests --- diff --git a/tests/test_check_settings.py b/tests/test_check_settings.py index 6ac2260..3c3b3a0 100644 --- a/tests/test_check_settings.py +++ b/tests/test_check_settings.py @@ -1,4 +1,5 @@ -# Copyright (C) 2020, 2021 The Meme Factory, Inc. http://www.karlpinc.com/ +# Copyright (C) 2020, 2021, 2024 The Meme Factory, Inc. +# http://www.karlpinc.com/ # This file is part of PGWUI_Copy. # @@ -34,10 +35,9 @@ pytest_plugins = ("pgwui",) def test_check_setting_is_pgwui_check_settings( pgwui_check_settings_entry_point): - '''Ensure that pgwui_copy has a pgwui.check_settings entry point + '''Ensure that pgwui_copy has a ".pgwui_copy" check_settings entry point ''' - assert (pgwui_check_settings_entry_point('pgwui_copy.check_settings') - is True) + assert pgwui_check_settings_entry_point('.pgwui_copy') is True # Mocks diff --git a/tests/test_pgwui_copy.py b/tests/test_pgwui_copy.py index 7ecd066..12d0300 100644 --- a/tests/test_pgwui_copy.py +++ b/tests/test_pgwui_copy.py @@ -34,9 +34,9 @@ pytest_plugins = ("pgwui",) # Module packaging test def test_pgwui_copy_is_pgwui_component(pgwui_component_entry_point): - '''Ensure that pgwui_copy is a pgwui.component entry point + '''Ensure that ".pgwui_copy" is a pgwui.component entry point ''' - assert pgwui_component_entry_point('pgwui_copy') is True + assert pgwui_component_entry_point('.pgwui_copy') is True # build_sensitive_dbs()