mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 01:59:30 +08:00
fix:添加RunThriftRequest,StepThriftRequestValidation,StepThriftRequestExtraction 到step中
This commit is contained in:
@@ -14,6 +14,8 @@ from httprunner.step_sql_request import (
|
|||||||
StepSqlRequestExtraction,
|
StepSqlRequestExtraction,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from httprunner.step_thrift_request import RunThriftRequest,StepThriftRequestValidation,StepThriftRequestExtraction
|
||||||
|
|
||||||
|
|
||||||
class Step(object):
|
class Step(object):
|
||||||
def __init__(
|
def __init__(
|
||||||
@@ -26,6 +28,9 @@ class Step(object):
|
|||||||
RunSqlRequest,
|
RunSqlRequest,
|
||||||
StepSqlRequestValidation,
|
StepSqlRequestValidation,
|
||||||
StepSqlRequestExtraction,
|
StepSqlRequestExtraction,
|
||||||
|
RunThriftRequest,
|
||||||
|
StepThriftRequestValidation,
|
||||||
|
StepThriftRequestExtraction
|
||||||
],
|
],
|
||||||
):
|
):
|
||||||
self.__step = step
|
self.__step = step
|
||||||
|
|||||||
@@ -356,8 +356,8 @@ class ThriftJSONEncoder(json.JSONEncoder):
|
|||||||
|
|
||||||
def encode(self, o):
|
def encode(self, o):
|
||||||
"""Return a JSON string representation of a Python data structure.
|
"""Return a JSON string representation of a Python data structure.
|
||||||
JSONEncoder().encode({"foo": ["bar", "baz"]})
|
JSONEncoder().encode({"foo": ["bar", "baz"]})
|
||||||
'{"foo": ["bar", "baz"]}'
|
'{"foo": ["bar", "baz"]}'
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# This is for extremely simple cases and benchmarks.
|
# This is for extremely simple cases and benchmarks.
|
||||||
|
|||||||
Reference in New Issue
Block a user