latchset / custodia

An API to manage secrets storage and retrieval
GNU General Public License v3.0
85 stars 27 forks source link

Backwards compatibility with older pytest #182

Closed tiran closed 7 years ago

tiran commented 7 years ago

pytest >= 2.10 supports yield based fixtures with pytest.fixture. In pytest < 2.10 pytest.yield_fixture is required. But that function also raises a deprecation warning in pytest >= 3.0.

https://docs.pytest.org/en/latest/fixture.html#fixture-finalization-executing-teardown-code

Signed-off-by: Christian Heimes cheimes@redhat.com

codecov-io commented 7 years ago

Codecov Report

Merging #182 into master will decrease coverage by 0.04%. The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
- Coverage   77.36%   77.32%   -0.05%     
==========================================
  Files          26       26              
  Lines        2554     2558       +4     
  Branches      242      244       +2     
==========================================
+ Hits         1976     1978       +2     
- Misses        474      475       +1     
- Partials      104      105       +1
Impacted Files Coverage Δ
tests/test_misc.py 95.55% <60%> (-4.45%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8d11b13...d164e47. Read the comment docs.