Skip to content

Commit

Permalink
Merge e2b3c43 into 7ae3c5d
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmf committed Jun 15, 2023
2 parents 7ae3c5d + e2b3c43 commit 75e73a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ celerybeat-schedule
# Ignore Ds_Store for finder
.DS_Store

# Secrets file for act
# Secrets files
.secrets
.env
5 changes: 5 additions & 0 deletions tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def finalizer():
'accessKey': os.environ.get('SAUCE_ACCESS_KEY', ''),
'tunnelName': os.environ.get('GITHUB_RUN_ID', ''),
}

for key in ['username', 'accessKey']:
if sauce_options[key] == '':
raise Exception(f"Sauce {key} is not in Environment")

options.set_capability('sauce:options', sauce_options)
# This creates a webdriver object to send to Sauce Labs including the desired capabilities
browser = webdriver.Remote(remote_url, options=options)
Expand Down

0 comments on commit 75e73a5

Please sign in to comment.