Commit Graph

19 Commits

Author SHA1 Message Date
Alessio Bogon dfe124b86d Sort imports 2021-09-19 00:12:49 +02:00
Alessio Bogon d6dacc9a3c Fix pytest < 6.2 compatibility 2021-09-18 23:34:34 +02:00
Alessio Bogon 60285ad104 Remove unused code 2021-09-18 16:57:31 +02:00
Alessio Bogon 5a9783315c Add utility functions to be able to inspect tests run by the pytester. 2021-09-16 18:50:07 +02:00
Konstantin Goloveshko e1dc0cad9a Update python and pytest
- Drop support of python 2.7, 3.5; Add explicit support for python >=3.6
- Remove six dependency
- Simplify getting step parser strategy; If step could be stringified it could be used
- Respect pytest --strict option in tests
2021-03-02 19:08:00 +02:00
Alessio Bogon a8c1ff4ff3
Fix performance regression from version 4.0.0 (#386)
* Fix performance issue when collecting tests.

* Add changelog entry
2020-09-08 11:59:01 +02:00
Alessio Bogon 853c615748
Support for pytest 6 "--import-mode=importlib" (#384)
* Fix compatibility with pytest 6 "--import-mode=importlib"

* Rewrite `scenario` and `scenarios` tests so that we can easily parametrize with the different pytest --import-mode.

* Update changelog
2020-09-07 09:43:29 +02:00
Alessio Bogon d26411fe2e
Drop compatibility with pytest < 3.6 (#322)
* Remove support code for pytest < 3.6

* Update setup.py tags

* Require pytest>=3.6 from setup.py
2019-10-11 09:34:48 +02:00
Alessio Bogon 6047a35ef1 Apply `black` formatter to the codebase 2019-08-27 17:54:58 +02:00
Alessio Bogon dbf2339e62 Remove compat function get_request_fixture_names 2019-02-18 10:26:14 +01:00
Alessio Bogon 7f4ba0315d Remove compat function 2019-02-18 10:26:14 +01:00
Alessio Bogon b411cfa463 (supposedly) drop compatibility with pytest < 3.3.2
The test suite still passes with all the pytests >= 3, so I wonder if I
actually broke the compatibility
2019-02-18 10:26:14 +01:00
Alessio Bogon ee05a101e9 drop compatibility with pytest < 3.0.0 2019-02-18 10:26:14 +01:00
Milosz Sliwinski 216beadbcc Fixes #276: Added config stack to keep tests separation. Removed usage of deprecated pytest.config global variable 2019-02-11 09:51:40 +01:00
Milosz Sliwinski 5678a5c84e Do not use deprecated MarkInfo objects on pytest>=3.6 (#262)
* Do not use deprecated MarkInfo objects on pytest>=3.6

* Provide way to get all parametrize args, not only the ones from the closest marker

* Fix for remaining tests that were using depracated MarkInfo objects
2018-11-14 10:24:04 +01:00
Oleg Pidsadnyi 7c6ba36ffc
Fixes #201 and pytest compatibility. (#232)
* Fixes #201 and pytest compatibility.

* Review comments
2018-01-23 20:43:43 +01:00
Bruno Oliveira 7f16bc93ea Last pytest 3.0 compatibility fixes 2016-08-19 16:47:56 +02:00
Florian Bruhin 27553d8222 Make fixture code pytest 3.0 compatible 2016-08-05 13:32:40 +02:00
Florian Bruhin 7d8bb2ffa1 Use inspect.signature() if it's available.
Fixes #153.
2015-11-17 21:49:35 +01:00