Skip to content

Commit

Permalink
Make tox pass selenium environment variables
Browse files Browse the repository at this point in the history
When running tox, pass through the user's DISPLAY and
DJANGO_SELENIUM_TESTS environment variables, so that

    DJANGO_SELENIUM_TESTS=true tox

will actually run the Selenuim integration tests.  Without this change,
the test suite never sees the DJANGO_SELENIUM_TESTS variable and thus
skips the integration tests.  Without DISPLAY, the integration tests
will error out (unless CI is present in the environment to instruct the
test suite to run the Selenium webdriver in headless mode).
  • Loading branch information
living180 authored and tim-schilling committed Mar 11, 2024
1 parent cc48a14 commit cfd4801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tox.ini
Expand Up @@ -30,6 +30,8 @@ passenv=
DB_PASSWORD
DB_HOST
DB_PORT
DISPLAY
DJANGO_SELENIUM_TESTS
GITHUB_*
setenv =
PYTHONPATH = {toxinidir}
Expand Down

0 comments on commit cfd4801

Please sign in to comment.