Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions getgauge/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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))


Expand Down
6 changes: 3 additions & 3 deletions tests/test_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down
Loading