change: rename schema model name and class name

This commit is contained in:
debugtalk
2020-05-14 23:53:18 +08:00
parent 9a9594b0c1
commit 98f4a8f065
10 changed files with 59 additions and 58 deletions

View File

@@ -1,12 +1,12 @@
# NOTICE: Generated By HttpRunner. DO'NOT EDIT!
import unittest
from httprunner.runner import TestCaseRunner
from httprunner.schema import TestsConfig, TestStep
from httprunner.runner import HttpRunner
from httprunner.schema import TConfig, TStep
class TestCaseHardcode(unittest.TestCase):
config = TestsConfig(
config = TConfig(
**{
"name": "request methods testcase in hardcode",
"base_url": "https://postman-echo.com",
@@ -16,7 +16,7 @@ class TestCaseHardcode(unittest.TestCase):
)
teststeps = [
TestStep(
TStep(
**{
"name": "get with params",
"request": {
@@ -28,7 +28,7 @@ class TestCaseHardcode(unittest.TestCase):
"validate": [{"eq": ["status_code", 200]}],
}
),
TestStep(
TStep(
**{
"name": "post raw text",
"request": {
@@ -43,7 +43,7 @@ class TestCaseHardcode(unittest.TestCase):
"validate": [{"eq": ["status_code", 200]}],
}
),
TestStep(
TStep(
**{
"name": "post form data",
"request": {
@@ -58,7 +58,7 @@ class TestCaseHardcode(unittest.TestCase):
"validate": [{"eq": ["status_code", 200]}],
}
),
TestStep(
TStep(
**{
"name": "put request",
"request": {
@@ -76,4 +76,4 @@ class TestCaseHardcode(unittest.TestCase):
]
def test_start(self):
TestCaseRunner(self.config, self.teststeps).run()
HttpRunner(self.config, self.teststeps).run()