mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 22:09:35 +08:00
refactor: reformat all code with black
This commit is contained in:
@@ -5,7 +5,6 @@ from httprunner.models import TConfig, TConfigThrift
|
||||
|
||||
|
||||
class ConfigThrift(object):
|
||||
|
||||
def __init__(self, config: TConfig) -> None:
|
||||
self.__config = config
|
||||
self.__config.thrift = TConfigThrift()
|
||||
@@ -31,13 +30,9 @@ class ConfigThrift(object):
|
||||
|
||||
|
||||
class Config(object):
|
||||
|
||||
def __init__(self, name: Text) -> None:
|
||||
caller_frame = inspect.stack()[1]
|
||||
self.__config = TConfig(
|
||||
name=name,
|
||||
path=caller_frame.filename
|
||||
)
|
||||
self.__config = TConfig(name=name, path=caller_frame.filename)
|
||||
|
||||
@property
|
||||
def name(self) -> Text:
|
||||
|
||||
Reference in New Issue
Block a user