Bug Description
When running a test case via the run API, the call fails because services.py line 345 passes an environment keyword argument to TestCaseRunner, but TestCaseRunner.__init__ in runner.py only accepts a single testcase parameter.
Root Cause
services.py line 345:
runner = TestCaseRunner(interface_case, environment=environment)
runner.py TestCaseRunner.__init__ :
def __init__(self, testcase: ApiTestCase):
Suggested Fix
Remove the environment parameter from the TestCaseRunner call in services.py line 345:
# Before:
runner = TestCaseRunner(interface_case, environment=environment)
# After:
runner = TestCaseRunner(interface_case)
The environment is already merged into interface_case.config by _prepare_config at line 341, so the runner does not need to receive it separately.
Bug Description
When running a test case via the
runAPI, the call fails becauseservices.pyline 345 passes anenvironmentkeyword argument toTestCaseRunner, butTestCaseRunner.__init__inrunner.pyonly accepts a singletestcaseparameter.Root Cause
services.pyline 345: