Fix entrypoint tests
authorKarl O. Pinc <kop@karlpinc.com>
Thu, 21 Mar 2024 23:30:40 +0000 (18:30 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Thu, 21 Mar 2024 23:34:35 +0000 (18:34 -0500)
tests/test_check_settings.py
tests/test_pgwui_logout.py

index 8d0e4b4395e7a9c87511e58e89c8f61c02002839..39b77b8c63597f724eb0e13e0011ba66f1dfa859 100644 (file)
@@ -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
index 805cdbc89e7c8c2108eb58b9974228d990376876..9c8c8f1706bbcaed5ebc438f33e54f1b60cf6b1d 100644 (file)
@@ -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