From: Karl O. Pinc Date: Thu, 21 Mar 2024 23:30:40 +0000 (-0500) Subject: Fix entrypoint tests X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=fef9b05db66d133261a467cf378b775011d42d92;p=pgwui_logout Fix entrypoint tests --- diff --git a/tests/test_check_settings.py b/tests/test_check_settings.py index 8d0e4b4..39b77b8 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_Logout. # @@ -36,8 +37,7 @@ def test_check_setting_is_pgwui_check_settings( pgwui_check_settings_entry_point): '''Ensure that pgwui_logout has a pgwui.check_settings entry point ''' - assert (pgwui_check_settings_entry_point('pgwui_logout.check_settings') - is True) + assert pgwui_check_settings_entry_point('.pgwui_logout') is True # Mocks diff --git a/tests/test_pgwui_logout.py b/tests/test_pgwui_logout.py index 805cdbc..9c8c8f1 100644 --- a/tests/test_pgwui_logout.py +++ b/tests/test_pgwui_logout.py @@ -1,4 +1,4 @@ -# Copyright (C) 2018, 2019, 2020 The Meme Factory, Inc. +# Copyright (C) 2018, 2019, 2020, 2024 The Meme Factory, Inc. # http://www.karlpinc.com/ # This file is part of PGWUI_Logout. @@ -33,10 +33,10 @@ pytest_plugins = ("pgwui",) # Module packaging test -def test_pgwui_upload_is_pgwui_component(pgwui_component_entry_point): - '''Ensure that pgwui_upload is a pgwui.component entry point +def test_pgwui_logout_is_pgwui_component(pgwui_component_entry_point): + '''Ensure that ".pgwui_logout" is a pgwui.component entry point ''' - assert pgwui_component_entry_point('pgwui_logout') is True + assert pgwui_component_entry_point('.pgwui_logout') is True # Functional tests