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

index 6ac226088a6f5a70b0fc9a986f312a7c58f04469..3c3b3a0c014deb19677accab72d12733b7228d6f 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_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
index 7ecd0667f902467380357b1724bfc9751fabd708..12d03005a5daaff4c89fdae74dca9ba5fa76e3f9 100644 (file)
@@ -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()