We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c657fa1 commit 5e83b07Copy full SHA for 5e83b07
1 file changed
README.md
@@ -211,14 +211,22 @@ A session scope fixture that runs `alembic upgrade` at test session setup and
211
212
It depends on `alembic_ini_path` fixture to get the path of `alembic.ini` file.
213
214
-To use:
+To use in a test or test module:
215
216
```python
217
from pytest import mark
218
219
pytestmark = mark.usefixtures("db_migration")
220
```
221
222
+To use globally, add to [pytest options](https://docs.pytest.org/en/stable/reference.html#confval-usefixtures):
223
+
224
+ ```ini
225
+ [pytest]
226
+ usefixtures =
227
+ db_migration
228
+ ```
229
230
### `alembic_ini_path`
231
232
It returns the path of `alembic.ini` configuration file. By default, it returns
0 commit comments