Skip to content

Commit f4c66c7

Browse files
committed
Change default DB name/password in tests
1 parent b68bc24 commit f4c66c7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Create database
3535
run: |
3636
# maps the container port to localhost
37-
docker run --name db -p 5432:5432 -d -e POSTGRES_PASSWORD=testing postgres:${{ matrix.postgres-version }}
37+
docker run --name db -p 5432:5432 -d -e POSTGRES_PASSWORD=postgres postgres:${{ matrix.postgres-version }}
3838
sleep 10 # wait for server to initialize
3939
4040
- name: Install tox-gh

tests/test_project/test_project/settings/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
"ENGINE": "django.db.backends.postgresql", # Add 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
1717
"NAME": "django_pgviews", # Or path to database file if using sqlite3.
1818
# The following settings are not used with sqlite3:
19-
"USER": "django_pgviews",
20-
"PASSWORD": "password",
19+
"USER": "postgres",
20+
"PASSWORD": "postgres",
2121
"HOST": "", # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
2222
"PORT": "", # Set to empty string for default.
2323
},
2424
"weather_db": {
2525
"ENGINE": "django.db.backends.postgresql", # Add 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
26-
"NAME": "django_pgviews_weatherdb", # Or path to database file if using sqlite3.
26+
"NAME": "postgres_weatherdb", # Or path to database file if using sqlite3.
2727
# The following settings are not used with sqlite3:
2828
"USER": "django_pgviews",
29-
"PASSWORD": "password",
29+
"PASSWORD": "postgres",
3030
"HOST": "", # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
3131
"PORT": "", # Set to empty string for default.
3232
},

tests/test_project/test_project/settings/ci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"ENGINE": "django.db.backends.postgresql",
88
"NAME": os.environ.get("DB_NAME", "circle_test"),
99
"USER": os.environ.get("DB_USER", "postgres"),
10-
"PASSWORD": os.environ.get("DB_PASSWORD", "testing"),
10+
"PASSWORD": os.environ.get("DB_PASSWORD", "postgres"),
1111
"HOST": "localhost",
1212
"PORT": "5432",
1313
},
1414
"weather_db": {
1515
"ENGINE": "django.db.backends.postgresql",
1616
"NAME": os.environ.get("DB_NAME_WEATHER", "weatherdb"),
1717
"USER": os.environ.get("DB_USER", "postgres"),
18-
"PASSWORD": os.environ.get("DB_PASSWORD", "testing"),
18+
"PASSWORD": os.environ.get("DB_PASSWORD", "postgres"),
1919
"HOST": "localhost",
2020
"PORT": "5432",
2121
},

0 commit comments

Comments
 (0)