File tree 6 files changed +9
-15
lines changed
6 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 1
- import os
2
-
3
1
import django
4
2
5
3
ROOT_URLCONF = "pytest_django_test.urls"
14
12
STATIC_URL = "/static/"
15
13
SECRET_KEY = "foobar"
16
14
17
- # Used to construct unique test database names to allow detox to run multiple
18
- # versions at the same time
19
- db_suffix = "_%s" % os .getuid ()
20
-
21
15
MIDDLEWARE = [
22
16
"django.contrib.sessions.middleware.SessionMiddleware" ,
23
17
"django.middleware.common.CommonMiddleware" ,
Original file line number Diff line number Diff line change 1
- from .settings_base import * # noqa: F403
1
+ from .settings_base import * # noqa: F401 F403
2
2
3
3
DATABASES = {
4
4
"default" : {
5
5
"ENGINE" : "django.db.backends.mysql" ,
6
- "NAME" : "pytest_django" + db_suffix , # noqa: F405
6
+ "NAME" : "pytest_django_should_never_get_accessed" ,
7
7
"HOST" : "localhost" ,
8
8
"USER" : "root" ,
9
9
"OPTIONS" : {"init_command" : "SET default_storage_engine=InnoDB" },
Original file line number Diff line number Diff line change 1
- from pytest_django_test .settings_base import * # noqa: F403
1
+ from .settings_base import * # noqa: F401 F403
2
2
3
3
DATABASES = {
4
4
"default" : {
5
5
"ENGINE" : "django.db.backends.mysql" ,
6
- "NAME" : "pytest_django" + db_suffix , # noqa: F405
6
+ "NAME" : "pytest_django_should_never_get_accessed" ,
7
7
"HOST" : "localhost" ,
8
8
"USER" : "root" ,
9
9
"OPTIONS" : {"init_command" : "SET default_storage_engine=MyISAM" },
Original file line number Diff line number Diff line change 1
- from pytest_django_test .settings_base import * # noqa
1
+ from .settings_base import * # noqa: F401 F403
2
2
3
3
# PyPy compatibility
4
4
try :
12
12
DATABASES = {
13
13
"default" : {
14
14
"ENGINE" : "django.db.backends.postgresql_psycopg2" ,
15
- "NAME" : "pytest_django" + db_suffix , # noqa
15
+ "NAME" : "pytest_django_should_never_get_accessed" ,
16
16
"HOST" : "localhost" ,
17
17
"USER" : "" ,
18
18
}
Original file line number Diff line number Diff line change 1
- from .settings_base import * # noqa
1
+ from .settings_base import * # noqa: F401 F403
2
2
3
3
DATABASES = {
4
4
"default" : {
Original file line number Diff line number Diff line change 1
1
import tempfile
2
2
3
- from pytest_django_test .settings_base import * # noqa
3
+ from .settings_base import * # noqa: F401 F403
4
4
5
5
# This is a SQLite configuration, which uses a file based database for
6
6
# tests (via setting TEST_NAME / TEST['NAME']).
11
11
DATABASES = {
12
12
"default" : {
13
13
"ENGINE" : "django.db.backends.sqlite3" ,
14
- "NAME" : "/should_never_be_accessed " ,
14
+ "NAME" : "/pytest_django_should_never_get_accessed " ,
15
15
"TEST" : {"NAME" : _filename },
16
16
}
17
17
}
You can’t perform that action at this time.
0 commit comments