Skip to content

Commit cfd4801

Browse files
living180tim-schilling
authored andcommitted
Make tox pass selenium environment variables
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).
1 parent cc48a14 commit cfd4801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ passenv=
3030
DB_PASSWORD
3131
DB_HOST
3232
DB_PORT
33+
DISPLAY
34+
DJANGO_SELENIUM_TESTS
3335
GITHUB_*
3436
setenv =
3537
PYTHONPATH = {toxinidir}

0 commit comments

Comments
 (0)