feat(testing): init pytest fixtures
current_test fixture allows to retrieve the current test context, that is exposed through the shell environment
This commit is contained in:
parent
c579ddd022
commit
644beb8696
6 changed files with 51 additions and 2 deletions
|
|
@ -0,0 +1,16 @@
|
|||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = pytest.mark.pytest
|
||||
|
||||
from byteb4rb1e.utils.testing.pytest.fixtures import current_test
|
||||
|
||||
|
||||
def test_current_test(current_test):
|
||||
"""
|
||||
"""
|
||||
suite_path, case_name = current_test
|
||||
|
||||
assert str(Path(__file__)) == str(suite_path)
|
||||
assert case_name == "test_current_test"
|
||||
Loading…
Add table
Add a link
Reference in a new issue