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

index beca57602491f543a22f6a0150115dc0be604e3a..2fa34891ef9b789d57db498fd35d58100b3abd97 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_Menu.
 #
@@ -35,10 +36,9 @@ pytest_plugins = ("pgwui",)
 
 def test_check_setting_is_pgwui_check_settings(
         pgwui_check_settings_entry_point):
-    '''Ensure that pgwui_menu has a pgwui.check_settings entry point
+    '''Ensure that pgwui_menu has a ".pgwui_menu" check_settings entry point
     '''
-    assert (pgwui_check_settings_entry_point('pgwui_menu.check_settings')
-            is True)
+    assert pgwui_check_settings_entry_point('.pgwui_menu') is True
 
 
 # Mocks
index 4fff145be862a61fdba2125a627522fe64c6c539..cba656b04e35092e245e2d545a666450ebaddb50 100644 (file)
@@ -28,6 +28,14 @@ import pgwui_menu.pgwui_menu as pgwui_menu
 from pgwui_develop import testing
 
 
+# Module packaging test
+
+def test_pgwui_menu_is_pgwui_component(pgwui_component_entry_point):
+    '''Ensure that ".pgwui_menu" is a pgwui.component entry point
+    '''
+    assert pgwui_component_entry_point('.pgwui_menu') is True
+
+
 # Unit tests
 
 # establish_settings()