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 committed Mar 11, 2024
1 parent b9e4af7 commit 0e4e348
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
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 0e4e348

Please sign in to comment.