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