Skip to content

Commit

Permalink
Remove checks on exception messages for CrossBrowserTesting authentic…
Browse files Browse the repository at this point in the history
…ation failures
  • Loading branch information
davehunt committed Jun 21, 2017
1 parent d59d931 commit 31af9ee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions testing/test_crossbrowsertesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,11 @@ def test_invalid_credentials_env(failure, monkeypatch, tmpdir, username, key):
monkeypatch.setattr(os.path, 'expanduser', lambda p: str(tmpdir))
monkeypatch.setenv(username, 'foo')
monkeypatch.setenv(key, 'bar')
out = failure('--capability', 'browser_api_name', 'FF46')
messages = ['User not found!', 'basic auth failed']
assert any(message in out for message in messages)
failure('--capability', 'browser_api_name', 'FF46')


def test_invalid_credentials_file(failure, monkeypatch, tmpdir):
monkeypatch.setattr(os.path, 'expanduser', lambda p: str(tmpdir))
config = tmpdir.join('.crossbrowsertesting')
config.write('[credentials]\nusername=foo\nkey=bar')
out = failure('--capability', 'browser_api_name', 'FF46')
messages = ['User not found!', 'basic auth failed']
assert any(message in out for message in messages)
failure('--capability', 'browser_api_name', 'FF46')

0 comments on commit 31af9ee

Please sign in to comment.