mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Fixed #25653 -- Made --selenium run only the selenium tests.
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
||||
from unittest import SkipTest
|
||||
|
||||
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
|
||||
from django.test import modify_settings
|
||||
from django.test import modify_settings, tag
|
||||
from django.utils.module_loading import import_string
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
@@ -14,6 +14,7 @@ class CSPMiddleware(object):
|
||||
return response
|
||||
|
||||
|
||||
@tag('selenium')
|
||||
@modify_settings(
|
||||
MIDDLEWARE_CLASSES={'append': 'django.contrib.admin.tests.CSPMiddleware'},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user