mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 16:39:30 +08:00
fix: duplicate running referenced testcase
This commit is contained in:
@@ -10,6 +10,4 @@ def sum_two(m, n):
|
||||
|
||||
|
||||
def get_variables():
|
||||
return {
|
||||
"foo1": "session_bar1"
|
||||
}
|
||||
return {"foo1": "session_bar1"}
|
||||
|
||||
@@ -9,7 +9,7 @@ sys.path.insert(0, os.getcwd())
|
||||
from httprunner import HttpRunner, TConfig, TStep
|
||||
|
||||
from examples.postman_echo.request_methods.request_with_functions_test import (
|
||||
TestCaseRequestWithFunctions,
|
||||
TestCaseRequestWithFunctions as RequestWithFunctions,
|
||||
)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class TestCaseRequestWithTestcaseReference(HttpRunner):
|
||||
**{
|
||||
"name": "request with functions",
|
||||
"variables": {"foo1": "override_bar1"},
|
||||
"testcase": TestCaseRequestWithFunctions,
|
||||
"testcase": RequestWithFunctions,
|
||||
}
|
||||
),
|
||||
]
|
||||
|
||||
@@ -9,7 +9,7 @@ sys.path.insert(0, os.getcwd())
|
||||
from httprunner import HttpRunner, TConfig, TStep
|
||||
|
||||
from examples.postman_echo.request_methods.request_with_functions_test import (
|
||||
TestCaseRequestWithFunctions,
|
||||
TestCaseRequestWithFunctions as RequestWithFunctions,
|
||||
)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class TestCaseRequestWithTestcaseReference(HttpRunner):
|
||||
**{
|
||||
"name": "request with functions",
|
||||
"variables": {"foo1": "override_bar1"},
|
||||
"testcase": TestCaseRequestWithFunctions,
|
||||
"testcase": RequestWithFunctions,
|
||||
}
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user