Commit 9fe8fd2
authored
Fixtures: Make
The pytest fixtures were improved to allow running with a
`core.sqlite_dos` storage for the test profile, making PostgreSQL
completely optional. However, the current fixture still imports the
`pgtest` package at module level making it a requirement, despite it
only being relevant when running the tests with a `core.psql_dos`
storage plugin.
Here the import is moved inside the `PostgresCluster._create` method
which is only called when the test suite actually uses a PSQL based
storage plugin.pgtest truly an optional dependency (#6502)1 parent 2ccfeee commit 9fe8fd2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments