py-utils/tests/integration/byteb4rb1e/utils/testing/pytest/test_fixtures.py
Tiara Rodney 644beb8696
feat(testing): init pytest fixtures
current_test fixture allows to retrieve the current test context, that is
exposed through the shell environment
2025-06-20 21:47:17 +02:00

16 lines
331 B
Python

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"