Skip to content

Commit 09aa3a4

Browse files
authored
change test plan env variable name (via allure-framework#521)
1 parent 00b7fcc commit 09aa3a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

allure-pytest/src/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def select_by_labels(items, config):
149149

150150
def select_by_testcase(items):
151151
planned_tests = []
152-
file_path = os.environ.get("AS_TESTPLAN_PATH")
152+
file_path = os.environ.get("ALLURE_TESTPLAN_PATH")
153153

154154
if file_path:
155155
with open(file_path, 'r') as plan_file:

allure-pytest/test/integration/allure_ee/select_test_from_testplan_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def test_select_by_testcase_id_test(planned_tests, expected_tests, allured_testd
8989

9090
testplan = {"tests": planned_tests}
9191
py_path = allured_testdir.testdir.makefile(".json", json.dumps(testplan))
92-
os.environ["AS_TESTPLAN_PATH"] = py_path.strpath
92+
os.environ["ALLURE_TESTPLAN_PATH"] = py_path.strpath
9393
else:
94-
os.environ.pop("AS_TESTPLAN_PATH", None)
94+
os.environ.pop("ALLURE_TESTPLAN_PATH", None)
9595

9696
allured_testdir.parse_docstring_source()
9797
allured_testdir.run_with_allure()

0 commit comments

Comments
 (0)