Skip to content

Commit

Permalink
Skip connect or shinyappsio tests if envvars are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Aug 28, 2024
1 parent 14853e6 commit e74480d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/playwright/utils/deploy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,16 @@ def fix_fn(request: pytest.FixtureRequest):
# Return the `url`
yield next(shinyapp_proc_gen).url
elif deploy_location in deploy_locations:

if deploy_location == "connect" and not (server_url and api_key):
pytest.skip("Connect server url or api key not found. Cannot deploy.")
if deploy_location == "shinyapps" and not (
shinyappsio_name and shinyappsio_token and shinyappsio_secret
):
pytest.skip(
"Shinyapps.io name, token or secret not found. Cannot deploy."
)

app_url = deploy_app(
app_file,
deploy_location,
Expand Down

0 comments on commit e74480d

Please sign in to comment.