File tree 7 files changed +16
-11
lines changed
src/django_twc_project/{{ module_name }}
7 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
26
26
27
27
- ` project.yml ` GitHub Actions workflow file. This is now taken care of by a custom GitHub bot.
28
28
29
+ ### Fixed
30
+
31
+ - Now mirroring the ` default ` database when testing. This is the recommendation from the Django documentation.
32
+
29
33
## [ 2024.7]
30
34
31
35
### Added
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ docs-serve:
101
101
102
102
docs-build LOCATION = " docs/_build/html":
103
103
just _cog
104
- sphinx-build docs
104
+ sphinx-build docs
105
105
106
106
# ----------------------------------------------------------------------
107
107
# DOCKER
Original file line number Diff line number Diff line change 68
68
DISABLE_SERVER_SIDE_CURSORS := env .bool ("DISABLE_SERVER_SIDE_CURSORS" , default = True )
69
69
):
70
70
DATABASES ["default" ]["DISABLE_SERVER_SIDE_CURSORS" ] = DISABLE_SERVER_SIDE_CURSORS
71
- DATABASES [EMAIL_RELAY_DATABASE_ALIAS ][
72
- " DISABLE_SERVER_SIDE_CURSORS"
73
- ] = DISABLE_SERVER_SIDE_CURSORS
71
+ DATABASES [EMAIL_RELAY_DATABASE_ALIAS ]["DISABLE_SERVER_SIDE_CURSORS" ] = (
72
+ DISABLE_SERVER_SIDE_CURSORS
73
+ )
74
74
75
75
DATABASE_ROUTERS = [
76
76
"email_relay.db.EmailDatabaseRouter" ,
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ docs-serve:
101
101
102
102
docs-build LOCATION = " docs/_build/html":
103
103
just _cog
104
- sphinx-build docs
104
+ sphinx-build docs
105
105
106
106
# ----------------------------------------------------------------------
107
107
# DOCKER
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ tag = false
7
7
version_pattern = " YYYY.MM.INC1"
8
8
9
9
[tool .bumpver .file_patterns ]
10
- "with_vite/__init__.py" = [
11
- ' __version__ = "{version}"'
12
- ]
13
10
"tests/test_version.py" = [
14
11
' assert __version__ == "{version}"'
15
12
]
13
+ "with_vite/__init__.py" = [
14
+ ' __version__ = "{version}"'
15
+ ]
16
16
17
17
[tool .coverage .report ]
18
18
exclude_lines = [
Original file line number Diff line number Diff line change 68
68
DISABLE_SERVER_SIDE_CURSORS := env .bool ("DISABLE_SERVER_SIDE_CURSORS" , default = True )
69
69
):
70
70
DATABASES ["default" ]["DISABLE_SERVER_SIDE_CURSORS" ] = DISABLE_SERVER_SIDE_CURSORS
71
- DATABASES [EMAIL_RELAY_DATABASE_ALIAS ][
72
- " DISABLE_SERVER_SIDE_CURSORS"
73
- ] = DISABLE_SERVER_SIDE_CURSORS
71
+ DATABASES [EMAIL_RELAY_DATABASE_ALIAS ]["DISABLE_SERVER_SIDE_CURSORS" ] = (
72
+ DISABLE_SERVER_SIDE_CURSORS
73
+ )
74
74
75
75
DATABASE_ROUTERS = [
76
76
"email_relay.db.EmailDatabaseRouter" ,
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ if not DEBUG and (
71
71
DATABASES[EMAIL_RELAY_DATABASE_ALIAS][
72
72
"DISABLE_SERVER_SIDE_CURSORS"
73
73
] = DISABLE_SERVER_SIDE_CURSORS
74
+ DATABASES[EMAIL_RELAY_DATABASE_ALIAS]["TEST"] = {"MIRROR": "default"}
74
75
75
76
DATABASE_ROUTERS = [
76
77
"email_relay.db.EmailDatabaseRouter",
You can’t perform that action at this time.
0 commit comments