Skip to content

Scalr/pytest-steps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-steps is a py.test plugin which let to adding some steps to your tests. A prototype for pytest-steps is a project pytest-grail from Wargaming.

Example of usage:

from pytest_steps import step

@step
def first_step():
    pass

def test_my():
    first_step()
    first_step()

Decorator test can take several parameters:

  1. step_group (bool) - Set this function is a step group
  2. description (str) - A human-like name for this function
  3. log_input (bool) - Show input parameters in log or not
  4. log_output (bool) - Show output from this function

In output You will see:

SUCCESS first_step()
SUCCESS first_step()

About

pytest plugin for fatmouse large tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages