smarie / python-pytest-steps

A tiny package to ease the creation of test steps with shared intermediate results/state.
https://smarie.github.io/python-pytest-steps/
BSD 3-Clause "New" or "Revised" License
56 stars 5 forks source link

Add hint to error message #35

Open karlkovaciny opened 4 years ago

karlkovaciny commented 4 years ago

I was playing with the tutorial at https://smarie.github.io/python-pytest-steps/#c-optional-steps-and-dependencies and got this error.

I had indented badly and my code looked like this: with optional_step('step_b') as step_b: assert True yield step_b # should have been unindented, caused this error.

I just wanted to help any other newbie get past this in case it happened to them.

codecov-io commented 4 years ago

Codecov Report

Merging #35 into master will not change coverage. The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #35   +/-   ##
=======================================
  Coverage   83.52%   83.52%           
=======================================
  Files          27       27           
  Lines        1153     1153           
=======================================
  Hits          963      963           
  Misses        190      190
Impacted Files Coverage Δ
pytest_steps/steps_generator.py 79.55% <0%> (ø) :arrow_up:

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 575028b...00d708b. Read the comment docs.