daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top