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 6782261 commit f8340e7Copy full SHA for f8340e7
migrations/versions/latest_greencode.py
@@ -4,6 +4,10 @@
4
"""
5
6
from collections.abc import Sequence
7
+from typing import TYPE_CHECKING
8
+
9
+if TYPE_CHECKING:
10
+ from pytest_alembic import MigrationContext
11
12
import sqlalchemy as sa
13
from alembic import op
@@ -42,3 +46,17 @@ def downgrade() -> None:
42
46
op.drop_table("greencode_memberships")
43
47
op.drop_table("greencode_items")
44
48
# ### end Alembic commands ###
49
50
51
+def pre_test_upgrade(
52
+ alembic_runner: "MigrationContext",
53
+ alembic_connection: sa.Connection,
54
+) -> None:
55
+ pass
56
57
58
+def test_upgrade(
59
60
61
62
0 commit comments