-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: Changed collection of .yaml files to address pytest Deprecation…
…Warning Details: * The collection of .yaml files in function tests that is implemented in tests/functiontest/conftest.py directly created the YamlItem and YamlFile objects using their constructors. Pytest 6.0.0 has deprecated that approach and has introduced class methods 'from_parent()' for this purpose, and they also do support additional kwargs like the ctors do. This change uses the from_parent() methods in both cases if the method exists on the object, and uses direct creation otherwise. The latter was necessary because we have to pin pytest to <5.0.0 on py27 and py34, and to <6.0.0 on py35. Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
- Loading branch information
1 parent
952754b
commit 618e513
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters