update init
This commit is contained in:
parent
339c9f1ae2
commit
099f747f1b
|
@ -1,18 +1,22 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2023/3/24 13:08
|
||||
# @Author : 谈林海
|
||||
import time
|
||||
import loguru
|
||||
from pathlib import Path
|
||||
from utils.commons.singleton_control import singleton
|
||||
from utils.models.models import Config
|
||||
from utils.read_file_process.read_yaml_control import HandleYaml
|
||||
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
@singleton
|
||||
class Loggings:
|
||||
"""日志操作方法"""
|
||||
|
||||
log_path = root / 'logs'
|
||||
log_path = '../logs'
|
||||
|
||||
def __new__(cls, *args, **kwargs):
|
||||
loggers = loguru.logger
|
||||
|
|
|
@ -6,6 +6,7 @@ import json
|
|||
from functools import wraps
|
||||
|
||||
import httpx
|
||||
|
||||
from utils import *
|
||||
from utils.commons.allure_control import ReportStyle
|
||||
from utils.commons.singleton_control import singleton
|
||||
|
@ -48,6 +49,7 @@ class RestClient:
|
|||
显式关闭会话
|
||||
"""
|
||||
self.client.close()
|
||||
|
||||
def res_log(func):
|
||||
@wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue