Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmay-browserstack committed Oct 15, 2024
1 parent 11538ed commit 354d279
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ def get_driver(cls, mock_driver = WebDriver, mock_connection = RemoteConnection)
driver = Mock(spec=mock_driver)
driver.session_id = 'Dummy_session_id'
driver.capabilities = { 'key': 'value' }
driver.desired_capabilities = { 'key': 'value' }
driver.command_executor = Mock(spec=mock_connection)
driver.command_executor._url = 'https://hub-cloud.browserstack.com/wd/hub' # pylint: disable=W0212
return driver
Expand Down Expand Up @@ -481,7 +480,6 @@ def posts_screenshot_to_the_local_percy_server(self, driver):
self.assertEqual(s1['sessionId'], driver.session_id)
self.assertEqual(s1['commandExecutorUrl'], driver.command_executor._url) # pylint: disable=W0212
self.assertEqual(s1['capabilities'], dict(driver.capabilities))
self.assertEqual(s1['sessionCapabilites'], dict(driver.desired_capabilities))
self.assertRegex(s1['client_info'], r'percy-selenium-python/\d+')
self.assertRegex(s1['environment_info'][0], r'selenium/\d+')
self.assertRegex(s1['environment_info'][1], r'python/\d+')
Expand Down

0 comments on commit 354d279

Please sign in to comment.