Skip to content

Commit

Permalink
tests/test_webdriver: remove assertion on exception message
Browse files Browse the repository at this point in the history
Asserting on the message that we don't control is prone to break
every time we upgrade selenium, just like I'm doing now.
  • Loading branch information
fsouza committed Nov 10, 2023
1 parent 06c3d28 commit f8eb4ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ def test_webdriver_local_driver_not_present(browser_name):
else:
service = FirefoxService(executable_path="failpath")

with pytest.raises(WebDriverException) as e:
with pytest.raises(WebDriverException):
Browser(browser_name, service=service)

assert "Message: 'failpath' executable needs to be in PATH." in str(e.value)


@pytest.mark.parametrize("browser_name", supported_browsers)
def test_attach_file(request, browser_name):
Expand Down

0 comments on commit f8eb4ee

Please sign in to comment.