changed scope of Interop testcase name fixture

Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
This commit is contained in:
haricharan-jaka
2022-10-19 11:13:25 +05:30
parent 9136eb1b0e
commit 6bf8275d1d

View File

@@ -288,7 +288,7 @@ def is_test_library_perfecto_ios(request):
yield interop
@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def interop_testcase_name(request):
test_case_full_name = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
n_current_test_method_name_split = re.sub(r'\[.*?\]\ *', "", test_case_full_name)