File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ install-docs:
29
29
poetry install --with docs
30
30
31
31
install-psycopg2 :
32
+ poetry run pip uninstall -y psycopg
32
33
poetry install --with psycopg2
33
34
34
35
install-psycopg3 :
36
+ poetry run pip uninstall -y psycopg2
35
37
poetry install --with psycopg3
36
38
37
39
install-mysql :
Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ def test():
57
57
expected_version
58
58
== get_postgresql_version ()[: len (expected_version )]
59
59
)
60
+ if expected_client == "psycopg3" :
61
+ import psycopg
62
+
63
+ assert psycopg .__version__ [0 ] == "3"
64
+ else :
65
+ import psycopg2
66
+
67
+ assert psycopg2 .__version__ [0 ] == "2"
60
68
assert find_spec (expected_client ), f"{ expected_client } not installed"
61
69
elif rdbms == "mysql" :
62
70
pass
You can’t perform that action at this time.
0 commit comments