pytest-postgresql 7.0.1__tar.gz → 7.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/CHANGES.rst +19 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/PKG-INFO +5 -4
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pyproject.toml +4 -4
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/__init__.py +1 -1
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/config.py +2 -1
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/plugin.py +1 -1
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/PKG-INFO +5 -4
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/requires.txt +1 -1
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_postgres_options_plugin.py +17 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/AUTHORS.rst +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/CONTRIBUTING.rst +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/COPYING +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/COPYING.lesser +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/MANIFEST.in +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/README.rst +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/exceptions.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/executor.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/executor_noop.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/factories/__init__.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/factories/client.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/factories/noprocess.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/factories/process.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/janitor.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/loader.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/py.typed +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/retry.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/SOURCES.txt +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/dependency_links.txt +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/entry_points.txt +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/top_level.txt +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/zip-safe +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/setup.cfg +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_config.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_executor.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_janitor.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_loader.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_noopexecutor.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_postgresql.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_template_database.py +0 -0
- {pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/tests/test_version.py +0 -0
|
@@ -3,6 +3,25 @@ CHANGELOG
|
|
|
3
3
|
|
|
4
4
|
.. towncrier release notes start
|
|
5
5
|
|
|
6
|
+
7.0.2 (2025-05-17)
|
|
7
|
+
==================
|
|
8
|
+
|
|
9
|
+
Bugfixes
|
|
10
|
+
--------
|
|
11
|
+
|
|
12
|
+
- Fix an issue where number of search counts has been hard-default set to 5 by command-line default and ini setting could not override it. (`#1115 <https://github.com/dbfixtures/pytest-postgresql/issues/1115>`__)
|
|
13
|
+
- Update minimum required pytest version to 7.2
|
|
14
|
+
|
|
15
|
+
Additionally added test run of `pytest-postgresql` against oldest supported versions. (`#1131 <https://github.com/dbfixtures/pytest-postgresql/issues/1131>`__)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Miscellaneus
|
|
19
|
+
------------
|
|
20
|
+
|
|
21
|
+
- Different approach to oldest requirements file. Trying to get dependabot off of it.
|
|
22
|
+
- Test pipeline optimisations
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
7.0.1 (2025-03-19)
|
|
7
26
|
==================
|
|
8
27
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-postgresql
|
|
3
|
-
Version: 7.0.
|
|
3
|
+
Version: 7.0.2
|
|
4
4
|
Summary: Postgresql fixtures and fixture factories for Pytest.
|
|
5
5
|
Author-email: Grzegorz Śliwiński <fizyk+pypi@fizyk.dev>
|
|
6
6
|
Project-URL: Source, https://github.com/dbfixtures/pytest-postgresql
|
|
7
7
|
Project-URL: Bug Tracker, https://github.com/dbfixtures/pytest-postgresql/issues
|
|
8
|
-
Project-URL: Changelog, https://github.com/dbfixtures/pytest-postgresql/blob/v7.0.
|
|
8
|
+
Project-URL: Changelog, https://github.com/dbfixtures/pytest-postgresql/blob/v7.0.2/CHANGES.rst
|
|
9
9
|
Keywords: tests,pytest,fixture,postgresql
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Environment :: Web Environment
|
|
@@ -29,11 +29,12 @@ Description-Content-Type: text/x-rst
|
|
|
29
29
|
License-File: COPYING
|
|
30
30
|
License-File: COPYING.lesser
|
|
31
31
|
License-File: AUTHORS.rst
|
|
32
|
-
Requires-Dist: pytest>=
|
|
32
|
+
Requires-Dist: pytest>=7.2
|
|
33
33
|
Requires-Dist: port-for>=0.7.3
|
|
34
34
|
Requires-Dist: mirakuru>=2.6.0
|
|
35
35
|
Requires-Dist: packaging
|
|
36
36
|
Requires-Dist: psycopg>=3.0.0
|
|
37
|
+
Dynamic: license-file
|
|
37
38
|
|
|
38
39
|
.. image:: https://raw.githubusercontent.com/dbfixtures/pytest-postgresql/master/logo.png
|
|
39
40
|
:width: 100px
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pytest-postgresql"
|
|
3
|
-
version = "7.0.
|
|
3
|
+
version = "7.0.2"
|
|
4
4
|
description = "Postgresql fixtures and fixture factories for Pytest."
|
|
5
5
|
readme = "README.rst"
|
|
6
6
|
keywords = ["tests", "pytest", "fixture", "postgresql"]
|
|
@@ -28,7 +28,7 @@ classifiers = [
|
|
|
28
28
|
"Framework :: Pytest",
|
|
29
29
|
]
|
|
30
30
|
dependencies = [
|
|
31
|
-
"pytest >=
|
|
31
|
+
"pytest >= 7.2",
|
|
32
32
|
"port-for >= 0.7.3",
|
|
33
33
|
"mirakuru >= 2.6.0",
|
|
34
34
|
"packaging",
|
|
@@ -39,7 +39,7 @@ requires-python = ">= 3.9"
|
|
|
39
39
|
[project.urls]
|
|
40
40
|
"Source" = "https://github.com/dbfixtures/pytest-postgresql"
|
|
41
41
|
"Bug Tracker" = "https://github.com/dbfixtures/pytest-postgresql/issues"
|
|
42
|
-
"Changelog" = "https://github.com/dbfixtures/pytest-postgresql/blob/v7.0.
|
|
42
|
+
"Changelog" = "https://github.com/dbfixtures/pytest-postgresql/blob/v7.0.2/CHANGES.rst"
|
|
43
43
|
|
|
44
44
|
[project.entry-points."pytest11"]
|
|
45
45
|
pytest_postgresql = "pytest_postgresql.plugin"
|
|
@@ -107,7 +107,7 @@ name = "Miscellaneus"
|
|
|
107
107
|
showcontent = false
|
|
108
108
|
|
|
109
109
|
[tool.tbump.version]
|
|
110
|
-
current = "7.0.
|
|
110
|
+
current = "7.0.2"
|
|
111
111
|
|
|
112
112
|
# Example of a semver regexp.
|
|
113
113
|
# Make sure this matches current_version before
|
|
@@ -38,7 +38,8 @@ def get_config(request: FixtureRequest) -> PostgresqlConfigDict:
|
|
|
38
38
|
exec=get_postgresql_option("exec"),
|
|
39
39
|
host=get_postgresql_option("host"),
|
|
40
40
|
port=get_postgresql_option("port"),
|
|
41
|
-
|
|
41
|
+
# Parse as int, because if it's defined in an INI file then it'll always be a string
|
|
42
|
+
port_search_count=int(get_postgresql_option("port_search_count")),
|
|
42
43
|
user=get_postgresql_option("user"),
|
|
43
44
|
password=get_postgresql_option("password"),
|
|
44
45
|
options=get_postgresql_option("options"),
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
# You should have received a copy of the GNU Lesser General Public License
|
|
17
17
|
# along with pytest-postgresql. If not, see <http://www.gnu.org/licenses/>.
|
|
18
18
|
"""Plugin module of pytest-postgresql."""
|
|
19
|
+
|
|
19
20
|
from tempfile import gettempdir
|
|
20
21
|
|
|
21
22
|
from _pytest.config.argparsing import Parser
|
|
@@ -92,7 +93,6 @@ def pytest_addoption(parser: Parser) -> None:
|
|
|
92
93
|
action="store",
|
|
93
94
|
dest="postgresql_port_search_count",
|
|
94
95
|
help=_help_port_search_count,
|
|
95
|
-
default=5,
|
|
96
96
|
)
|
|
97
97
|
|
|
98
98
|
parser.addoption("--postgresql-user", action="store", dest="postgresql_user", help=_help_user)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-postgresql
|
|
3
|
-
Version: 7.0.
|
|
3
|
+
Version: 7.0.2
|
|
4
4
|
Summary: Postgresql fixtures and fixture factories for Pytest.
|
|
5
5
|
Author-email: Grzegorz Śliwiński <fizyk+pypi@fizyk.dev>
|
|
6
6
|
Project-URL: Source, https://github.com/dbfixtures/pytest-postgresql
|
|
7
7
|
Project-URL: Bug Tracker, https://github.com/dbfixtures/pytest-postgresql/issues
|
|
8
|
-
Project-URL: Changelog, https://github.com/dbfixtures/pytest-postgresql/blob/v7.0.
|
|
8
|
+
Project-URL: Changelog, https://github.com/dbfixtures/pytest-postgresql/blob/v7.0.2/CHANGES.rst
|
|
9
9
|
Keywords: tests,pytest,fixture,postgresql
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Environment :: Web Environment
|
|
@@ -29,11 +29,12 @@ Description-Content-Type: text/x-rst
|
|
|
29
29
|
License-File: COPYING
|
|
30
30
|
License-File: COPYING.lesser
|
|
31
31
|
License-File: AUTHORS.rst
|
|
32
|
-
Requires-Dist: pytest>=
|
|
32
|
+
Requires-Dist: pytest>=7.2
|
|
33
33
|
Requires-Dist: port-for>=0.7.3
|
|
34
34
|
Requires-Dist: mirakuru>=2.6.0
|
|
35
35
|
Requires-Dist: packaging
|
|
36
36
|
Requires-Dist: psycopg>=3.0.0
|
|
37
|
+
Dynamic: license-file
|
|
37
38
|
|
|
38
39
|
.. image:: https://raw.githubusercontent.com/dbfixtures/pytest-postgresql/master/logo.png
|
|
39
40
|
:width: 100px
|
|
@@ -57,6 +57,23 @@ def test_postgres_loader_in_ini(pointed_pytester: Pytester) -> None:
|
|
|
57
57
|
ret.assert_outcomes(passed=1)
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
def test_postgres_port_search_count_in_cli_is_int(pointed_pytester: Pytester) -> None:
|
|
61
|
+
"""Check that the --postgresql-port-search-count command line argument is parsed as an int."""
|
|
62
|
+
pointed_pytester.copy_example("test_assert_port_search_count_is_ten.py")
|
|
63
|
+
ret = pointed_pytester.runpytest(
|
|
64
|
+
"--postgresql-port-search-count", "10", "test_assert_port_search_count_is_ten.py"
|
|
65
|
+
)
|
|
66
|
+
ret.assert_outcomes(passed=1)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def test_postgres_port_search_count_in_ini_is_int(pointed_pytester: Pytester) -> None:
|
|
70
|
+
"""Check that pytest.ini arguments are honored for load."""
|
|
71
|
+
pointed_pytester.copy_example("test_assert_port_search_count_is_ten.py")
|
|
72
|
+
pointed_pytester.makefile(".ini", pytest="[pytest]\npostgresql_port_search_count = 10\n")
|
|
73
|
+
ret = pointed_pytester.runpytest("test_assert_port_search_count_is_ten.py")
|
|
74
|
+
ret.assert_outcomes(passed=1)
|
|
75
|
+
|
|
76
|
+
|
|
60
77
|
postgresql_proc_to_override = postgresql_proc()
|
|
61
78
|
|
|
62
79
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql/factories/noprocess.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{pytest_postgresql-7.0.1 → pytest_postgresql-7.0.2}/pytest_postgresql.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|