Skip to content

Commit 39855f9

Browse files
fix: fix py dependency by upgrading pytest version to 7.2.0 for Python 3.7+. For Python 3.6 tests pytest needs to be added manually.
1 parent e3a4c37 commit 39855f9

5 files changed

Lines changed: 161 additions & 142 deletions

File tree

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ test:
7070
matrix:
7171
- DOCKER_IMAGE: "python:3.10"
7272
- DOCKER_IMAGE: "python:3.6"
73+
EXTRA_POETRY_ADD_ARGUMENT: "pytest@6.2.3"
7374
USE_MOCK_SERVER: "use mock server"
7475
- DOCKER_IMAGE: "python:3.7"
7576
USE_MOCK_SERVER: "use mock server"
@@ -80,7 +81,7 @@ test:
8081
- DOCKER_IMAGE: "python:3.10"
8182
USE_MOCK_SERVER: "use mock server"
8283
- DOCKER_IMAGE: "python:3.6"
83-
EXTRA_POETRY_ADD_ARGUMENT: "requests@2.0"
84+
EXTRA_POETRY_ADD_ARGUMENT: "requests@2.0 pytest@6.2.3"
8485
USE_MOCK_SERVER: "use mock server"
8586
- DOCKER_IMAGE: "python:3.9"
8687
EXTRA_POETRY_ADD_ARGUMENT: "requests@2.0"

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [Unreleased]
9+
### Fixed
10+
* Fix py dependency by upgrading pytest version to 7.2.0 for Python 3.7+. For
11+
Python 3.6 tests pytest needs to be added manually.
12+
13+
814
## [1.11.0] - 2022-09-26
915
### Added
1016
* Add formality options `'PREFER_LESS'` and `'PREFER_MORE'`.
@@ -203,6 +209,7 @@ Version increased to avoid conflicts with old packages on PyPI.
203209
Initial version.
204210

205211

212+
[Unreleased]: https://github.com/DeepLcom/deepl-python/compare/v1.11.0...HEAD
206213
[1.11.0]: https://github.com/DeepLcom/deepl-python/compare/v1.10.0...v1.11.0
207214
[1.10.0]: https://github.com/DeepLcom/deepl-python/compare/v1.9.0...v1.10.0
208215
[1.9.0]: https://github.com/DeepLcom/deepl-python/compare/v1.8.0...v1.9.0

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ deepl-mock, run it in another terminal while executing the tests. Execute the
545545
tests using `pytest` with the `DEEPL_MOCK_SERVER_PORT` and `DEEPL_SERVER_URL`
546546
environment variables defined referring to the mock-server.
547547

548+
Note: for testing on Python 3.6, you need to install an older version of
549+
`pytest` manually, using `poetry add pytest@6.2.3`.
550+
548551
[api-docs]: https://www.deepl.com/docs-api?utm_source=github&utm_medium=github-python-readme
549552

550553
[api-docs-csv-format]: https://www.deepl.com/docs-api/managing-glossaries/supported-glossary-formats/?utm_source=github&utm_medium=github-python-readme

0 commit comments

Comments
 (0)