File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -94,22 +94,26 @@ def django_db_modify_db_settings_parallel_suffix(
94
94
def django_db_modify_db_settings (
95
95
django_db_modify_db_settings_parallel_suffix : None ,
96
96
) -> None :
97
+ """Modify db settings just before the databases are configured."""
97
98
skip_if_no_django ()
98
99
99
100
100
101
@pytest .fixture (scope = "session" )
101
102
def django_db_use_migrations (request : pytest .FixtureRequest ) -> bool :
103
+ """Return whether to use migrations to create the test databases."""
102
104
return not request .config .getvalue ("nomigrations" )
103
105
104
106
105
107
@pytest .fixture (scope = "session" )
106
108
def django_db_keepdb (request : pytest .FixtureRequest ) -> bool :
109
+ """Return whether to re-use an existing database and to keep it after the test run."""
107
110
reuse_db : bool = request .config .getvalue ("reuse_db" )
108
111
return reuse_db
109
112
110
113
111
114
@pytest .fixture (scope = "session" )
112
115
def django_db_createdb (request : pytest .FixtureRequest ) -> bool :
116
+ """Return whether the database is to be re-created before running any tests."""
113
117
create_db : bool = request .config .getvalue ("create_db" )
114
118
return create_db
115
119
You can’t perform that action at this time.
0 commit comments