mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 05:19:38 +08:00
refactor: use HttpRunner as testcase base class
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# NOTICE: Generated By HttpRunner. DO'NOT EDIT!
|
||||
from httprunner import HttpRunner, TConfig, TStep, TestCase
|
||||
from httprunner import HttpRunner, TConfig, TStep
|
||||
|
||||
|
||||
class TestCaseValidateWithFunctions(TestCase):
|
||||
class TestCaseValidateWithFunctions(HttpRunner):
|
||||
config = TConfig(
|
||||
**{
|
||||
"name": "request methods testcase: validate with functions",
|
||||
@@ -38,5 +38,6 @@ class TestCaseValidateWithFunctions(TestCase):
|
||||
),
|
||||
]
|
||||
|
||||
def test_start(self):
|
||||
HttpRunner(self.config, self.teststeps).run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
TestCaseValidateWithFunctions().test_start()
|
||||
|
||||
Reference in New Issue
Block a user