Guest User

Untitled

a guest
Aug 10th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. @pytest.fixture(scope="session")
  2. def foo_fixture():
  3. data = get_data()
  4. if not data:
  5. pytest.fail('ERROR: Could not get data', pytrace=False)
  6.  
  7. def test_foo(foo_fixture):
  8. assert something, pytest.fail('ERROR: ...', pytrace=False)
  9.  
  10. def test_bar(foo_fixture):
  11. assert something, pytest.fail('ERROR: ...', pytrace=False)
  12.  
  13. ____________________________________________________________________ ERROR at setup of test_foo ____________________________________________________________________
  14. ERROR: Could not get data
  15. ____________________________________________________________________ ERROR at setup of test_bar____________________________________________________________________
  16. ERROR: Could not get data
Add Comment
Please, Sign In to add comment