From e01e7b92cbce6047a3e85de1c57b761a4844aac9 Mon Sep 17 00:00:00 2001 From: jiaqiying <jiaqiying@hikcreate.com> Date: Thu, 6 May 2021 18:32:58 -0700 Subject: [PATCH] modify base config name --- config.py | 6 ++++-- test_case/conftest.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index cf8792d..1fa5534 100644 --- a/config.py +++ b/config.py @@ -5,11 +5,12 @@ class BaseConfig(): # 请求头 headers = {'Content-Type': 'application/json; charset=utf-8'} # 当前运行的产品名 - name = "bmc" - test_case_dir = "test_case/bmc/" + name = "auto" + test_case_dir = "test_case/" salt = 'hikcreate_xj' # SSO 登录的东西 secs=0.1 + class BMCConfig(BaseConfig): """斑马信用app的配置类""" # 测试用例目录 @@ -18,6 +19,7 @@ class BMCConfig(BaseConfig): test_case_data_dir = "test_case_data/bmc/" webhook = '' + class BmyConfig(BaseConfig): """企业云的配置类""" name = "bmy" diff --git a/test_case/conftest.py b/test_case/conftest.py index 32c15f9..4173451 100644 --- a/test_case/conftest.py +++ b/test_case/conftest.py @@ -5,4 +5,5 @@ import pytest @pytest.fixture(scope="function",autouse=True) def sleep(): + print("wait wait") time.sleep(config.BaseConfig.secs) \ No newline at end of file -- libgit2 0.26.0