From a02cf8777299f6ee31441917422099ca54f37821 Mon Sep 17 00:00:00 2001 From: sschulz92 Date: Mon, 1 Sep 2025 13:41:03 +0200 Subject: [PATCH] Fix typo Signed-off-by: sschulz92 --- getgauge/registry.py | 6 +++--- tests/test_processor.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/getgauge/registry.py b/getgauge/registry.py index 037e60a..0afc452 100644 --- a/getgauge/registry.py +++ b/getgauge/registry.py @@ -228,7 +228,7 @@ def _get_step_value(step_text): def _take_screenshot(): - temp_file = _uniqe_screenshot_file() + temp_file = _unique_screenshot_file() try: call(['gauge_screenshot', temp_file]) return os.path.basename(temp_file) @@ -261,7 +261,7 @@ def capture(): @staticmethod def capture_to_file(): if not registry.is_screenshot_writer: - screenshot_file = _uniqe_screenshot_file() + screenshot_file = _unique_screenshot_file() content = registry.screenshot_provider()() with open(screenshot_file, "wb") as file: file.write(content) @@ -279,7 +279,7 @@ def clear(): ScreenshotsStore.__screenshots = [] -def _uniqe_screenshot_file(): +def _unique_screenshot_file(): return os.path.join(_screenshots_dir(), "screenshot-{0}.png".format(uuid1().int)) diff --git a/tests/test_processor.py b/tests/test_processor.py index 45afc0d..4179733 100644 --- a/tests/test_processor.py +++ b/tests/test_processor.py @@ -354,7 +354,7 @@ def test_Processor_failing_ending_execution_request(self): registry.add_after_suite(failing_impl) request = ExecutionEndingRequest() response = processor.process_execution_ending_request(request) - print(response) + self.assertIsInstance(response, ExecutionStatusResponse) self.assertTrue(response.executionResult.failed) self.assertEqual(ProtoExecutionResult.ASSERTION, @@ -528,8 +528,8 @@ def foo(): processor.process_cache_file_request(request) - self.assertEqual(registry.is_implemented('foo1'), False) - self.assertEqual(registry.is_implemented('foo {}'), True) + self.assertFalse(registry.is_implemented('foo1')) + self.assertTrue(registry.is_implemented('foo {}')) def test_Processor_cache_file_with_changed_status(self): request = CacheFileRequest()