pytest-invenio 2.2.0__tar.gz → 2.2.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.
Files changed (47) hide show
  1. pytest_invenio-2.2.2/.github/workflows/pypi-publish.yml +11 -0
  2. pytest_invenio-2.2.2/.github/workflows/tests.yml +33 -0
  3. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/CHANGES.rst +9 -0
  4. pytest_invenio-2.2.2/PKG-INFO +312 -0
  5. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio/__init__.py +1 -1
  6. pytest_invenio-2.2.2/pytest_invenio.egg-info/PKG-INFO +312 -0
  7. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio.egg-info/entry_points.txt +0 -1
  8. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio.egg-info/requires.txt +2 -1
  9. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/setup.cfg +2 -1
  10. pytest-invenio-2.2.0/.github/workflows/pypi-publish.yml +0 -33
  11. pytest-invenio-2.2.0/.github/workflows/tests.yml +0 -84
  12. pytest-invenio-2.2.0/PKG-INFO +0 -275
  13. pytest-invenio-2.2.0/pytest_invenio.egg-info/PKG-INFO +0 -275
  14. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/.editorconfig +0 -0
  15. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/.git-blame-ignore-revs +0 -0
  16. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/AUTHORS.rst +0 -0
  17. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/CONTRIBUTING.rst +0 -0
  18. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/INSTALL.rst +0 -0
  19. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/LICENSE +0 -0
  20. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/MANIFEST.in +0 -0
  21. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/README.rst +0 -0
  22. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/constraints-min.txt +0 -0
  23. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/constraints-pypi.txt +0 -0
  24. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/Makefile +0 -0
  25. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/api.rst +0 -0
  26. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/authors.rst +0 -0
  27. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/changes.rst +0 -0
  28. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/conf.py +0 -0
  29. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/contributing.rst +0 -0
  30. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/index.rst +0 -0
  31. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/installation.rst +0 -0
  32. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/license.rst +0 -0
  33. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/make.bat +0 -0
  34. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/requirements.txt +0 -0
  35. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/docs/usage.rst +0 -0
  36. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pyproject.toml +0 -0
  37. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio/fixtures.py +0 -0
  38. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio/plugin.py +0 -0
  39. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio/user.py +0 -0
  40. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio.egg-info/SOURCES.txt +0 -0
  41. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio.egg-info/dependency_links.txt +0 -0
  42. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio.egg-info/not-zip-safe +0 -0
  43. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/pytest_invenio.egg-info/top_level.txt +0 -0
  44. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/run-tests.sh +0 -0
  45. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/setup.py +0 -0
  46. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/tests/conftest.py +0 -0
  47. {pytest-invenio-2.2.0 → pytest_invenio-2.2.2}/tests/test_fixtures.py +0 -0
@@ -0,0 +1,11 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ jobs:
9
+ Publish:
10
+ uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master
11
+ secrets: inherit
@@ -0,0 +1,33 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # This file is part of Invenio.
4
+ # Copyright (C) 2020 CERN.
5
+ # Copyright (C) 2022 Graz University of Technology.
6
+ #
7
+ # Invenio is free software; you can redistribute it and/or modify it
8
+ # under the terms of the MIT License; see LICENSE file for more details.
9
+
10
+ name: CI
11
+
12
+ on:
13
+ push:
14
+ branches:
15
+ - master
16
+ - maint-*
17
+ pull_request:
18
+ branches:
19
+ - master
20
+ - maint-*
21
+ schedule:
22
+ # * is a special character in YAML so you have to quote this string
23
+ - cron: "0 3 * * 6"
24
+ workflow_dispatch:
25
+ inputs:
26
+ reason:
27
+ description: "Reason"
28
+ required: false
29
+ default: "Manual trigger"
30
+
31
+ jobs:
32
+ Python:
33
+ uses: inveniosoftware/workflows/.github/workflows/tests-python.yml@master
@@ -8,6 +8,15 @@
8
8
  Changes
9
9
  =======
10
10
 
11
+ Version 2.2.2 (released 2025-05-08)
12
+
13
+ - ci: use reusable workflows
14
+ - installation: pin snowballstemmer to <3.x
15
+
16
+ Version 2.2.1 (released 2024-06-27)
17
+
18
+ - installation: pin importlib-metadata ``<8.0.0``
19
+
11
20
  Version 2.2.0 (released 2024-02-28)
12
21
 
13
22
  - setup: bump coverage package
@@ -0,0 +1,312 @@
1
+ Metadata-Version: 2.4
2
+ Name: pytest-invenio
3
+ Version: 2.2.2
4
+ Summary: Pytest fixtures for Invenio.
5
+ Home-page: https://github.com/inveniosoftware/pytest-invenio
6
+ Author: CERN
7
+ Author-email: info@inveniosoftware.org
8
+ License: MIT
9
+ Keywords: invenio pytest
10
+ Platform: any
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Requires-Python: >=3.7
13
+ License-File: LICENSE
14
+ License-File: AUTHORS.rst
15
+ Requires-Dist: check-manifest>=0.42
16
+ Requires-Dist: coverage<8,>=5.3
17
+ Requires-Dist: docker-services-cli>=0.4.0
18
+ Requires-Dist: Flask<2.3.0,>=1.1.4
19
+ Requires-Dist: pytest-cov>=3.0.0
20
+ Requires-Dist: pytest-flask>=1.2.0
21
+ Requires-Dist: pytest-github-actions-annotate-failures>=0.2.0
22
+ Requires-Dist: pytest-isort>=3.0.0
23
+ Requires-Dist: snowballstemmer<3,>=2.2.0
24
+ Requires-Dist: pytest-pydocstyle>=2.2.3
25
+ Requires-Dist: pytest-pycodestyle>=2.2.0
26
+ Requires-Dist: pytest<7.2.0,>=6
27
+ Requires-Dist: selenium<4,>=3.7.0
28
+ Requires-Dist: importlib-metadata<8.0.0,>=4.4
29
+ Requires-Dist: importlib-resources>=5.0
30
+ Provides-Extra: tests
31
+ Requires-Dist: pytest-black>=0.3.0; extra == "tests"
32
+ Requires-Dist: invenio-celery<2.0.0,>=1.2.4; extra == "tests"
33
+ Requires-Dist: invenio-db<2.0.0,>=1.0.12; extra == "tests"
34
+ Requires-Dist: invenio-files-rest<2.0.0,>=1.3.2; extra == "tests"
35
+ Requires-Dist: invenio-mail<2.0.0,>=1.0.2; extra == "tests"
36
+ Requires-Dist: invenio-search<3.0.0,>=2.1.0; extra == "tests"
37
+ Requires-Dist: sphinx>=4.5; extra == "tests"
38
+ Provides-Extra: elasticsearch7
39
+ Requires-Dist: invenio-search[elasticsearch7]<3.0.0,>=2.1.0; extra == "elasticsearch7"
40
+ Provides-Extra: opensearch1
41
+ Requires-Dist: invenio-search[opensearch1]<3.0.0,>=2.1.0; extra == "opensearch1"
42
+ Provides-Extra: opensearch2
43
+ Requires-Dist: invenio-search[opensearch2]<3.0.0,>=2.1.0; extra == "opensearch2"
44
+ Provides-Extra: docs
45
+ Dynamic: license-file
46
+
47
+ ..
48
+ This file is part of pytest-invenio.
49
+ Copyright (C) 2018 CERN.
50
+
51
+ pytest-invenio is free software; you can redistribute it and/or modify it
52
+ under the terms of the MIT License; see LICENSE file for more details.
53
+
54
+ ================
55
+ pytest-invenio
56
+ ================
57
+
58
+ .. image:: https://github.com/inveniosoftware/pytest-invenio/workflows/CI/badge.svg
59
+ :target: https://github.com/inveniosoftware/pytest-invenio/actions?query=workflow%3ACI
60
+
61
+ .. image:: https://img.shields.io/coveralls/inveniosoftware/pytest-invenio.svg
62
+ :target: https://coveralls.io/r/inveniosoftware/pytest-invenio
63
+
64
+ .. image:: https://img.shields.io/pypi/v/pytest-invenio.svg
65
+ :target: https://pypi.org/pypi/pytest-invenio
66
+
67
+ Pytest fixtures for Invenio.
68
+
69
+ The package offers a number of features to help test Invenio based
70
+ applications:
71
+
72
+ - Less boilerplate: Using the fixtures you can keep your ``conftest.py`` short
73
+ and focused.
74
+ - Database re-use: database tests are running inside a transaction which is
75
+ rolled back after the test.
76
+ - End-to-end testing: Selenium tests can easily be switched on/off, and in case
77
+ of test failures a screenshot is taken (with possibility to output in the
78
+ console in base64-encoding - useful on e.g. TravisCI).
79
+ - Application configuration for testing (e.g. disable CSRF protection in forms
80
+ and HTTPS requirement).
81
+ - JSON decoding support in Flask test client for easier API testing.
82
+ - Batteries included: further fixtures help with e.g. mail sending and CLI
83
+ tests.
84
+
85
+ Further documentation is available on https://pytest-invenio.readthedocs.io/.
86
+
87
+ ..
88
+ This file is part of pytest-invenio.
89
+ Copyright (C) 2018-2024 CERN.
90
+
91
+ pytest-invenio is free software; you can redistribute it and/or modify it
92
+ under the terms of the MIT License; see LICENSE file for more details.
93
+
94
+ Changes
95
+ =======
96
+
97
+ Version 2.2.2 (released 2025-05-08)
98
+
99
+ - ci: use reusable workflows
100
+ - installation: pin snowballstemmer to <3.x
101
+
102
+ Version 2.2.1 (released 2024-06-27)
103
+
104
+ - installation: pin importlib-metadata ``<8.0.0``
105
+
106
+ Version 2.2.0 (released 2024-02-28)
107
+
108
+ - setup: bump coverage package
109
+ - installation: add GitHub action annotations
110
+
111
+ Version 2.1.7 (released 2024-01-29)
112
+
113
+ - fixtures: use unlogged tables for PostgreSQL
114
+
115
+ Version 2.1.6 (released 2023-10-31)
116
+
117
+ - Add ``db_session_options`` fixture.
118
+
119
+ Version 2.1.5 (released 2023-10-02)
120
+
121
+ - installation: pin Flask ``<2.3.0``.
122
+
123
+ Version 2.1.4 (released 2023-06-02)
124
+
125
+ - user fixture: use identity ID as int
126
+
127
+ Version 2.1.3 (released 2023-04-13)
128
+
129
+ - yanked, because of an incompatibility with Flask-SQLAlchemy v3.
130
+
131
+ Version 2.1.2 (released 2023-03-20)
132
+
133
+ - disable request rate-limiting
134
+
135
+ Version 2.1.1 (released 2022-10-25)
136
+
137
+ - pin pytest version
138
+
139
+ Version 1.4.15 (released 2022-10-04)
140
+
141
+ - Pin docker-services-cli<0.5.0, which drops Elasticsearch v6.
142
+
143
+ Version 1.4.14 (yanked)
144
+
145
+ Version 2.1.0 (released 2022-10-03)
146
+
147
+ - Adds support for OpenSearch v2
148
+
149
+ Version 2.0.0 (released 2022-09-23)
150
+
151
+ - Use invenio-search v2 and replaces Elasticsearch with OpenSearch, including
152
+ fixture names.
153
+ - Deprecate previous fixtures named with `es` prefix.
154
+ - Remove upper pin of pytest.
155
+
156
+ Version 1.4.13 (released 2022-08-09)
157
+
158
+ - Fix pycodestyle dependency
159
+
160
+ Version 1.4.12 (released 2022-08-08)
161
+
162
+ - Fix flask-login dependency
163
+
164
+ Version 1.4.11 (released 2022-05-05)
165
+
166
+ - Upper pin Selenium dependency, v4 drops support for Python 3.7.
167
+
168
+ Version 1.4.10 (released 2022-05-04)
169
+
170
+ - Fixes an issue with the user id in the UserFixture being None before the
171
+ db session is flushed.
172
+
173
+ Version 1.4.9 (released 2022-05-02)
174
+
175
+ - Mark users as changed and commit through datastore (outside of context
176
+ manager).
177
+
178
+ Version 1.4.8 (yanked 2022-05-02 due to UserFixture session close issues)
179
+
180
+ - Commit users through the datastore in the UserFixture.
181
+
182
+ Version 1.4.7 (released 2022-04-04)
183
+
184
+ - Adds support for Flask v2.1
185
+
186
+ Version 1.4.6 (released 2022-02-29)
187
+
188
+ - Adds support for Invenio-Accounts 2.0 in the UserFixture.
189
+
190
+ Version 1.4.5 (released 2022-02-23)
191
+
192
+ - Fixes an import so that pytest-invenio is now usable without
193
+ Invenio-Accounts installed.
194
+
195
+ Version 1.4.4 (released 2022-02-21)
196
+
197
+ - Adds new UserFixture for easier test user creation.
198
+
199
+ Version 1.4.3 (released 2022-02-18)
200
+
201
+ - Adds support for using importlib_metadata to read the patched entry points.
202
+
203
+ Version 1.4.2 (released 2021-05-11)
204
+
205
+ - Add APP_THEME and THEME_ICONS in default app config, often needed when testing
206
+ invenio packages that will render templates.
207
+
208
+ Version 1.4.1 (released 2020-12-17)
209
+
210
+ - Remove pytest-celery because it's still an alpha release.
211
+
212
+ Version 1.4.0 (released 2020-09-16)
213
+
214
+ - BACKWARD INCOMPATIBLE: Changes to use isort, pycodestyle and pydocstyle via
215
+ pytest plugins. You need to update `pytest.ini` and remove the ``--pep8``
216
+ from the addopts and instead add ``--isort --pydocstyle --pycodestyle``:
217
+
218
+ .. code-block:: ini
219
+
220
+ addopts = --isort --pydocstyle --pycodestyle ...
221
+
222
+ In `./run-tests.sh` script you should also remove calls to pydocstyle and
223
+ isort as both are now integrated with pytest.
224
+
225
+ - BACKWARD INCOMPATIBLE: Upgrade dependencies: coverage, pytest-flask,
226
+ check-manifest, pytest. You need to set the pytest-flask live server
227
+ fixture scope in your pytest config:
228
+
229
+ .. code-block:: ini
230
+
231
+ [pytest]
232
+ live_server_scope = function
233
+
234
+ - Decommission pytest-pep8 (last release in 2014) in favour of pycodestyle.
235
+
236
+ Version 1.3.4 (released 2020-09-15)
237
+
238
+ - Add `entrypoints` fixture to allow injecting extra entry points during
239
+ testing so that you avoid manual registration of e.g. mappings and schemas.
240
+
241
+ Version 1.3.3 (released 2020-08-27)
242
+
243
+ - Add `docker-services-cli` as dependency to enable Invenio modules to
244
+ perform reproducible tests.
245
+
246
+ Version 1.3.2 (released 2020-05-19)
247
+
248
+ - Move check-manifest, coverage, isort, pydocstyle, pytest-flask and
249
+ pytest-pep8 from test to install requirements to provide them as centrally
250
+ managed dependencies.
251
+
252
+ Version 1.3.1 (released 2020-05-12)
253
+
254
+ - Uninstalls numpy in Travis due to incompatibilities with
255
+ elasticsearch-py.
256
+
257
+ Version 1.3.0 (released 2020-03-19)
258
+
259
+ - Removes support for Python 2.7.
260
+
261
+ Version 1.2.2 (released 2020-05-07)
262
+
263
+ - Uninstalls numpy in Travis due to incompatibilities with
264
+ elasticsearch-py.
265
+ - Deprecated Python versions lower than 3.6.0. Now supporting 3.6.0.
266
+ - Set maximum version of Werkzeug to 1.0.0 due to incompatible imports.
267
+ - Set maximum version of Flask to 1.1.0 due to incompatible imports.
268
+ - Set maximum version of Pytest-Flask to 1.0.0 due to breaking changes.
269
+ - Set minimum version of Invenio-Search to 1.2.3 and maximum to 1.3.0.
270
+
271
+ Version 1.2.1 (released 2019-11-13)
272
+
273
+ - Fixes instance path fixture to also set the static folder.
274
+
275
+ Version 1.2.0 (released 2019-07-31)
276
+
277
+ - Adds fixture for creating default Location.
278
+ - Adds fixture for creating Bucket from directory with files.
279
+
280
+ Version 1.1.1 (released 2019-05-21)
281
+
282
+ - Adds pytest-cov as install dependency.
283
+
284
+ Version 1.1.0 (released 2019-02-15)
285
+
286
+ - Changes name of fixture from celery_config to celery_config_ext due to
287
+ unreliable overwriting of celery_config fixture name.
288
+
289
+ Version 1.0.6 (released 2018-12-03)
290
+
291
+ - Fixes overwriting of celery_config fixture
292
+
293
+ Version 1.0.5 (released 2018-10-08)
294
+
295
+ - Adds default Content Security Policy header to the app configuration.
296
+ - Fixes issue with default tests scope.
297
+
298
+ Version 1.0.4 (released 2018-08-14)
299
+
300
+ - Bumps pytest minimun version to 3.8.0.
301
+
302
+ Version 1.0.3 (released 2018-09-05)
303
+
304
+ - Moves module dependent imports inside the fixture functions in order to
305
+ decouple dependencies for Invenio apps or modules that might not be using
306
+ them.
307
+
308
+ Version 1.0.2 (released 2018-05-25)
309
+
310
+ Version 1.0.1 (released 2018-04-17)
311
+
312
+ Version 1.0.0 (released 2018-03-22)
@@ -499,6 +499,6 @@ information.
499
499
  """
500
500
 
501
501
 
502
- __version__ = "2.2.0"
502
+ __version__ = "2.2.2"
503
503
 
504
504
  __all__ = ("__version__",)
@@ -0,0 +1,312 @@
1
+ Metadata-Version: 2.4
2
+ Name: pytest-invenio
3
+ Version: 2.2.2
4
+ Summary: Pytest fixtures for Invenio.
5
+ Home-page: https://github.com/inveniosoftware/pytest-invenio
6
+ Author: CERN
7
+ Author-email: info@inveniosoftware.org
8
+ License: MIT
9
+ Keywords: invenio pytest
10
+ Platform: any
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Requires-Python: >=3.7
13
+ License-File: LICENSE
14
+ License-File: AUTHORS.rst
15
+ Requires-Dist: check-manifest>=0.42
16
+ Requires-Dist: coverage<8,>=5.3
17
+ Requires-Dist: docker-services-cli>=0.4.0
18
+ Requires-Dist: Flask<2.3.0,>=1.1.4
19
+ Requires-Dist: pytest-cov>=3.0.0
20
+ Requires-Dist: pytest-flask>=1.2.0
21
+ Requires-Dist: pytest-github-actions-annotate-failures>=0.2.0
22
+ Requires-Dist: pytest-isort>=3.0.0
23
+ Requires-Dist: snowballstemmer<3,>=2.2.0
24
+ Requires-Dist: pytest-pydocstyle>=2.2.3
25
+ Requires-Dist: pytest-pycodestyle>=2.2.0
26
+ Requires-Dist: pytest<7.2.0,>=6
27
+ Requires-Dist: selenium<4,>=3.7.0
28
+ Requires-Dist: importlib-metadata<8.0.0,>=4.4
29
+ Requires-Dist: importlib-resources>=5.0
30
+ Provides-Extra: tests
31
+ Requires-Dist: pytest-black>=0.3.0; extra == "tests"
32
+ Requires-Dist: invenio-celery<2.0.0,>=1.2.4; extra == "tests"
33
+ Requires-Dist: invenio-db<2.0.0,>=1.0.12; extra == "tests"
34
+ Requires-Dist: invenio-files-rest<2.0.0,>=1.3.2; extra == "tests"
35
+ Requires-Dist: invenio-mail<2.0.0,>=1.0.2; extra == "tests"
36
+ Requires-Dist: invenio-search<3.0.0,>=2.1.0; extra == "tests"
37
+ Requires-Dist: sphinx>=4.5; extra == "tests"
38
+ Provides-Extra: elasticsearch7
39
+ Requires-Dist: invenio-search[elasticsearch7]<3.0.0,>=2.1.0; extra == "elasticsearch7"
40
+ Provides-Extra: opensearch1
41
+ Requires-Dist: invenio-search[opensearch1]<3.0.0,>=2.1.0; extra == "opensearch1"
42
+ Provides-Extra: opensearch2
43
+ Requires-Dist: invenio-search[opensearch2]<3.0.0,>=2.1.0; extra == "opensearch2"
44
+ Provides-Extra: docs
45
+ Dynamic: license-file
46
+
47
+ ..
48
+ This file is part of pytest-invenio.
49
+ Copyright (C) 2018 CERN.
50
+
51
+ pytest-invenio is free software; you can redistribute it and/or modify it
52
+ under the terms of the MIT License; see LICENSE file for more details.
53
+
54
+ ================
55
+ pytest-invenio
56
+ ================
57
+
58
+ .. image:: https://github.com/inveniosoftware/pytest-invenio/workflows/CI/badge.svg
59
+ :target: https://github.com/inveniosoftware/pytest-invenio/actions?query=workflow%3ACI
60
+
61
+ .. image:: https://img.shields.io/coveralls/inveniosoftware/pytest-invenio.svg
62
+ :target: https://coveralls.io/r/inveniosoftware/pytest-invenio
63
+
64
+ .. image:: https://img.shields.io/pypi/v/pytest-invenio.svg
65
+ :target: https://pypi.org/pypi/pytest-invenio
66
+
67
+ Pytest fixtures for Invenio.
68
+
69
+ The package offers a number of features to help test Invenio based
70
+ applications:
71
+
72
+ - Less boilerplate: Using the fixtures you can keep your ``conftest.py`` short
73
+ and focused.
74
+ - Database re-use: database tests are running inside a transaction which is
75
+ rolled back after the test.
76
+ - End-to-end testing: Selenium tests can easily be switched on/off, and in case
77
+ of test failures a screenshot is taken (with possibility to output in the
78
+ console in base64-encoding - useful on e.g. TravisCI).
79
+ - Application configuration for testing (e.g. disable CSRF protection in forms
80
+ and HTTPS requirement).
81
+ - JSON decoding support in Flask test client for easier API testing.
82
+ - Batteries included: further fixtures help with e.g. mail sending and CLI
83
+ tests.
84
+
85
+ Further documentation is available on https://pytest-invenio.readthedocs.io/.
86
+
87
+ ..
88
+ This file is part of pytest-invenio.
89
+ Copyright (C) 2018-2024 CERN.
90
+
91
+ pytest-invenio is free software; you can redistribute it and/or modify it
92
+ under the terms of the MIT License; see LICENSE file for more details.
93
+
94
+ Changes
95
+ =======
96
+
97
+ Version 2.2.2 (released 2025-05-08)
98
+
99
+ - ci: use reusable workflows
100
+ - installation: pin snowballstemmer to <3.x
101
+
102
+ Version 2.2.1 (released 2024-06-27)
103
+
104
+ - installation: pin importlib-metadata ``<8.0.0``
105
+
106
+ Version 2.2.0 (released 2024-02-28)
107
+
108
+ - setup: bump coverage package
109
+ - installation: add GitHub action annotations
110
+
111
+ Version 2.1.7 (released 2024-01-29)
112
+
113
+ - fixtures: use unlogged tables for PostgreSQL
114
+
115
+ Version 2.1.6 (released 2023-10-31)
116
+
117
+ - Add ``db_session_options`` fixture.
118
+
119
+ Version 2.1.5 (released 2023-10-02)
120
+
121
+ - installation: pin Flask ``<2.3.0``.
122
+
123
+ Version 2.1.4 (released 2023-06-02)
124
+
125
+ - user fixture: use identity ID as int
126
+
127
+ Version 2.1.3 (released 2023-04-13)
128
+
129
+ - yanked, because of an incompatibility with Flask-SQLAlchemy v3.
130
+
131
+ Version 2.1.2 (released 2023-03-20)
132
+
133
+ - disable request rate-limiting
134
+
135
+ Version 2.1.1 (released 2022-10-25)
136
+
137
+ - pin pytest version
138
+
139
+ Version 1.4.15 (released 2022-10-04)
140
+
141
+ - Pin docker-services-cli<0.5.0, which drops Elasticsearch v6.
142
+
143
+ Version 1.4.14 (yanked)
144
+
145
+ Version 2.1.0 (released 2022-10-03)
146
+
147
+ - Adds support for OpenSearch v2
148
+
149
+ Version 2.0.0 (released 2022-09-23)
150
+
151
+ - Use invenio-search v2 and replaces Elasticsearch with OpenSearch, including
152
+ fixture names.
153
+ - Deprecate previous fixtures named with `es` prefix.
154
+ - Remove upper pin of pytest.
155
+
156
+ Version 1.4.13 (released 2022-08-09)
157
+
158
+ - Fix pycodestyle dependency
159
+
160
+ Version 1.4.12 (released 2022-08-08)
161
+
162
+ - Fix flask-login dependency
163
+
164
+ Version 1.4.11 (released 2022-05-05)
165
+
166
+ - Upper pin Selenium dependency, v4 drops support for Python 3.7.
167
+
168
+ Version 1.4.10 (released 2022-05-04)
169
+
170
+ - Fixes an issue with the user id in the UserFixture being None before the
171
+ db session is flushed.
172
+
173
+ Version 1.4.9 (released 2022-05-02)
174
+
175
+ - Mark users as changed and commit through datastore (outside of context
176
+ manager).
177
+
178
+ Version 1.4.8 (yanked 2022-05-02 due to UserFixture session close issues)
179
+
180
+ - Commit users through the datastore in the UserFixture.
181
+
182
+ Version 1.4.7 (released 2022-04-04)
183
+
184
+ - Adds support for Flask v2.1
185
+
186
+ Version 1.4.6 (released 2022-02-29)
187
+
188
+ - Adds support for Invenio-Accounts 2.0 in the UserFixture.
189
+
190
+ Version 1.4.5 (released 2022-02-23)
191
+
192
+ - Fixes an import so that pytest-invenio is now usable without
193
+ Invenio-Accounts installed.
194
+
195
+ Version 1.4.4 (released 2022-02-21)
196
+
197
+ - Adds new UserFixture for easier test user creation.
198
+
199
+ Version 1.4.3 (released 2022-02-18)
200
+
201
+ - Adds support for using importlib_metadata to read the patched entry points.
202
+
203
+ Version 1.4.2 (released 2021-05-11)
204
+
205
+ - Add APP_THEME and THEME_ICONS in default app config, often needed when testing
206
+ invenio packages that will render templates.
207
+
208
+ Version 1.4.1 (released 2020-12-17)
209
+
210
+ - Remove pytest-celery because it's still an alpha release.
211
+
212
+ Version 1.4.0 (released 2020-09-16)
213
+
214
+ - BACKWARD INCOMPATIBLE: Changes to use isort, pycodestyle and pydocstyle via
215
+ pytest plugins. You need to update `pytest.ini` and remove the ``--pep8``
216
+ from the addopts and instead add ``--isort --pydocstyle --pycodestyle``:
217
+
218
+ .. code-block:: ini
219
+
220
+ addopts = --isort --pydocstyle --pycodestyle ...
221
+
222
+ In `./run-tests.sh` script you should also remove calls to pydocstyle and
223
+ isort as both are now integrated with pytest.
224
+
225
+ - BACKWARD INCOMPATIBLE: Upgrade dependencies: coverage, pytest-flask,
226
+ check-manifest, pytest. You need to set the pytest-flask live server
227
+ fixture scope in your pytest config:
228
+
229
+ .. code-block:: ini
230
+
231
+ [pytest]
232
+ live_server_scope = function
233
+
234
+ - Decommission pytest-pep8 (last release in 2014) in favour of pycodestyle.
235
+
236
+ Version 1.3.4 (released 2020-09-15)
237
+
238
+ - Add `entrypoints` fixture to allow injecting extra entry points during
239
+ testing so that you avoid manual registration of e.g. mappings and schemas.
240
+
241
+ Version 1.3.3 (released 2020-08-27)
242
+
243
+ - Add `docker-services-cli` as dependency to enable Invenio modules to
244
+ perform reproducible tests.
245
+
246
+ Version 1.3.2 (released 2020-05-19)
247
+
248
+ - Move check-manifest, coverage, isort, pydocstyle, pytest-flask and
249
+ pytest-pep8 from test to install requirements to provide them as centrally
250
+ managed dependencies.
251
+
252
+ Version 1.3.1 (released 2020-05-12)
253
+
254
+ - Uninstalls numpy in Travis due to incompatibilities with
255
+ elasticsearch-py.
256
+
257
+ Version 1.3.0 (released 2020-03-19)
258
+
259
+ - Removes support for Python 2.7.
260
+
261
+ Version 1.2.2 (released 2020-05-07)
262
+
263
+ - Uninstalls numpy in Travis due to incompatibilities with
264
+ elasticsearch-py.
265
+ - Deprecated Python versions lower than 3.6.0. Now supporting 3.6.0.
266
+ - Set maximum version of Werkzeug to 1.0.0 due to incompatible imports.
267
+ - Set maximum version of Flask to 1.1.0 due to incompatible imports.
268
+ - Set maximum version of Pytest-Flask to 1.0.0 due to breaking changes.
269
+ - Set minimum version of Invenio-Search to 1.2.3 and maximum to 1.3.0.
270
+
271
+ Version 1.2.1 (released 2019-11-13)
272
+
273
+ - Fixes instance path fixture to also set the static folder.
274
+
275
+ Version 1.2.0 (released 2019-07-31)
276
+
277
+ - Adds fixture for creating default Location.
278
+ - Adds fixture for creating Bucket from directory with files.
279
+
280
+ Version 1.1.1 (released 2019-05-21)
281
+
282
+ - Adds pytest-cov as install dependency.
283
+
284
+ Version 1.1.0 (released 2019-02-15)
285
+
286
+ - Changes name of fixture from celery_config to celery_config_ext due to
287
+ unreliable overwriting of celery_config fixture name.
288
+
289
+ Version 1.0.6 (released 2018-12-03)
290
+
291
+ - Fixes overwriting of celery_config fixture
292
+
293
+ Version 1.0.5 (released 2018-10-08)
294
+
295
+ - Adds default Content Security Policy header to the app configuration.
296
+ - Fixes issue with default tests scope.
297
+
298
+ Version 1.0.4 (released 2018-08-14)
299
+
300
+ - Bumps pytest minimun version to 3.8.0.
301
+
302
+ Version 1.0.3 (released 2018-09-05)
303
+
304
+ - Moves module dependent imports inside the fixture functions in order to
305
+ decouple dependencies for Invenio apps or modules that might not be using
306
+ them.
307
+
308
+ Version 1.0.2 (released 2018-05-25)
309
+
310
+ Version 1.0.1 (released 2018-04-17)
311
+
312
+ Version 1.0.0 (released 2018-03-22)
@@ -1,3 +1,2 @@
1
1
  [pytest11]
2
2
  invenio = pytest_invenio.plugin
3
-