Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @pytest.fixture(scope="session")
- def foo_fixture():
- data = get_data()
- if not data:
- pytest.fail('ERROR: Could not get data', pytrace=False)
- def test_foo(foo_fixture):
- assert something, pytest.fail('ERROR: ...', pytrace=False)
- def test_bar(foo_fixture):
- assert something, pytest.fail('ERROR: ...', pytrace=False)
- ____________________________________________________________________ ERROR at setup of test_foo ____________________________________________________________________
- ERROR: Could not get data
- ____________________________________________________________________ ERROR at setup of test_bar____________________________________________________________________
- ERROR: Could not get data
Add Comment
Please, Sign In to add comment