diff options
| author | Akshesh <aksheshdoshi@gmail.com> | 2016-02-19 13:56:13 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-19 14:21:00 -0500 |
| commit | 6670da75ff8a59b2ec0b465846e3f76aab9155b2 (patch) | |
| tree | d2719da24f1c1b9a898a4c6338f434ec20441b9e /tests | |
| parent | 032f5a789692d69ab206f902867ff2c3e05c5320 (diff) | |
Fixed #25653 -- Made --selenium run only the selenium tests.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 4 | ||||
| -rw-r--r-- | tests/view_tests/tests/test_i18n.py | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 6fca3dc6a6..b14bc76ed7 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -439,6 +439,10 @@ if __name__ == "__main__": if options.selenium: os.environ['DJANGO_SELENIUM_TESTS'] = '1' + if not options.tags: + options.tags = ['selenium'] + elif 'selenium' not in options.tags: + options.tags.append('selenium') if options.bisect: bisect_tests(options.bisect, options, options.modules, options.parallel) diff --git a/tests/view_tests/tests/test_i18n.py b/tests/view_tests/tests/test_i18n.py index 269a7d7075..c342c85803 100644 --- a/tests/view_tests/tests/test_i18n.py +++ b/tests/view_tests/tests/test_i18n.py @@ -10,7 +10,7 @@ from os import path from django.conf import settings from django.test import ( LiveServerTestCase, SimpleTestCase, TestCase, modify_settings, - override_settings, + override_settings, tag, ) from django.urls import reverse from django.utils import six @@ -260,6 +260,7 @@ skip_selenium = not os.environ.get('DJANGO_SELENIUM_TESTS', False) @unittest.skipIf(skip_selenium, 'Selenium tests not requested') +@tag('selenium') @override_settings(ROOT_URLCONF='view_tests.urls') class JavascriptI18nTests(LiveServerTestCase): |
