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

index 20ea3ce7ec2e57370783cbb1cc0bf86c71b5814a..43691fa497b7da4670f508cf287036dc659b9183 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_Upload.
 #
@@ -34,10 +35,10 @@ pytest_plugins = ("pgwui",)
 
 def test_check_setting_is_pgwui_check_settings(
         pgwui_check_settings_entry_point):
-    '''Ensure that pgwui_upload has a pgwui.check_settings entry point
+    '''Ensure that pgwui_upload has a ".pgwui_upload" check_settings
+    entry point
     '''
-    assert (pgwui_check_settings_entry_point('pgwui_upload.check_settings')
-            is True)
+    assert pgwui_check_settings_entry_point('.pgwui_upload') is True
 
 
 # Mocks
index 2e776cc1178aa8c69c7041764bd04d28e8a324ea..09b37aadc0d509a239c6d4eb61d5a47317f263f5 100644 (file)
@@ -34,9 +34,9 @@ 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
+    '''Ensure that ".pgwui_upload" is a pgwui.component entry point
     '''
-    assert pgwui_component_entry_point('pgwui_upload') is True
+    assert pgwui_component_entry_point('.pgwui_upload') is True
 
 
 # establish_settings()