Skip to content

Commit a02cf87

Browse files
committed
Fix typo
Signed-off-by: sschulz92 <[email protected]>
1 parent 3ecba42 commit a02cf87

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

getgauge/registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def _get_step_value(step_text):
228228

229229

230230
def _take_screenshot():
231-
temp_file = _uniqe_screenshot_file()
231+
temp_file = _unique_screenshot_file()
232232
try:
233233
call(['gauge_screenshot', temp_file])
234234
return os.path.basename(temp_file)
@@ -261,7 +261,7 @@ def capture():
261261
@staticmethod
262262
def capture_to_file():
263263
if not registry.is_screenshot_writer:
264-
screenshot_file = _uniqe_screenshot_file()
264+
screenshot_file = _unique_screenshot_file()
265265
content = registry.screenshot_provider()()
266266
with open(screenshot_file, "wb") as file:
267267
file.write(content)
@@ -279,7 +279,7 @@ def clear():
279279
ScreenshotsStore.__screenshots = []
280280

281281

282-
def _uniqe_screenshot_file():
282+
def _unique_screenshot_file():
283283
return os.path.join(_screenshots_dir(), "screenshot-{0}.png".format(uuid1().int))
284284

285285

tests/test_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def test_Processor_failing_ending_execution_request(self):
354354
registry.add_after_suite(failing_impl)
355355
request = ExecutionEndingRequest()
356356
response = processor.process_execution_ending_request(request)
357-
print(response)
357+
358358
self.assertIsInstance(response, ExecutionStatusResponse)
359359
self.assertTrue(response.executionResult.failed)
360360
self.assertEqual(ProtoExecutionResult.ASSERTION,
@@ -528,8 +528,8 @@ def foo():
528528

529529
processor.process_cache_file_request(request)
530530

531-
self.assertEqual(registry.is_implemented('foo1'), False)
532-
self.assertEqual(registry.is_implemented('foo {}'), True)
531+
self.assertFalse(registry.is_implemented('foo1'))
532+
self.assertTrue(registry.is_implemented('foo {}'))
533533

534534
def test_Processor_cache_file_with_changed_status(self):
535535
request = CacheFileRequest()

0 commit comments

Comments
 (0)