From edcf9162a3e7576825703d7c5a44afe1962d1e42 Mon Sep 17 00:00:00 2001 From: Jordan <21129425+ItIsJordan@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:26:00 +0100 Subject: [PATCH] Pylint fixes Fixed some issues output by pylint in the actions output --- tests/test_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_table.py b/tests/test_table.py index 67e32382..1fa434f9 100644 --- a/tests/test_table.py +++ b/tests/test_table.py @@ -179,7 +179,7 @@ def test_write_images_multiple_executions(self): self.assertTrue(modified_time_main < os.path.getmtime(expected_main_file)) self.assertTrue(modified_time_thumbnail < os.path.getmtime(expected_thumbnail_file)) - def test_add_additional_resource(self): # pylint: disable=no-self-use + def test_add_additional_resource(self): """Test the add_additional_resource function.""" test_table = Table("Some Table") test_data = [ @@ -262,7 +262,7 @@ def test_add_additional_resource_license_check(self): # Create test table and get the test pdf test_table = Table("Some Table") - some_pdf = "%s/minimal.pdf" % os.path.dirname(__file__) + some_pdf = f"{os.path.dirname(__file__)}/minimal.pdf" # Set default description, location, copy_file and file_type arguments for a resource file resource_args = ["Description", some_pdf, True, "Type"]