We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3a3f1 commit ed7a97dCopy full SHA for ed7a97d
psqlpy_piccolo/__pycache__/__init__.cpython-312.pyc
2 Bytes
tests/conftest.py
@@ -3,6 +3,7 @@
3
from unittest.mock import MagicMock
4
5
import pytest
6
+from piccolo.apps.migrations.commands.forwards import run_forwards
7
8
from tests.test_apps.mega.tables import MegaTable, SmallTable
9
from tests.test_apps.music.tables import (
@@ -29,6 +30,13 @@ def anyio_backend() -> str:
29
30
return "asyncio"
31
32
33
+@pytest.fixture(autouse=True, scope="session")
34
+async def _migrate_forward() -> None:
35
+ applications: typing.Final = ["mega", "music"]
36
+ for application_name in applications:
37
+ await run_forwards(app_name=application_name)
38
+
39
40
@pytest.fixture(autouse=True)
41
async def _clean_up() -> None:
42
tables_to_clean: typing.Final[list[Table]] = [
0 commit comments