Commit b759cb78 by 李江源

重构项目

parent 8e618cb3
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ # ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import pymysql import pymysql
from MyApiAutoTest_v3_3 import logor, log from ApiAutoTest import logor, log
from MyApiAutoTest_v3_3.common.read_basic_ini import ReadBasicIni from ApiAutoTest.common.read_basic_ini import ReadBasicIni
class DB: class DB:
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import configparser import configparser
import os.path import os.path
from MyApiAutoTest_v3_3 import log from ApiAutoTest import log
class ReadBasicIni: class ReadBasicIni:
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ # ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import openpyxl import openpyxl
from MyApiAutoTest_v3_3 import log from ApiAutoTest import log
from MyApiAutoTest_v3_3.common.read_basic_ini import ReadBasicIni from ApiAutoTest.common.read_basic_ini import ReadBasicIni
from MyApiAutoTest_v3_3.common.read_json import read_json from ApiAutoTest.common.read_json import read_json
from MyApiAutoTest_v3_3.common.read_user_ini import ReadUserIni from ApiAutoTest.common.read_user_ini import ReadUserIni
from MyApiAutoTest_v3_3.data_config.settings import * from ApiAutoTest.data_config.settings import *
class ReadExcel: class ReadExcel:
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import json import json
import os.path import os.path
from MyApiAutoTest_v3_3 import log, logor from ApiAutoTest import log, logor
@log @log
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import configparser import configparser
import os.path import os.path
from MyApiAutoTest_v3_3 import log from ApiAutoTest import log
class ReadUserIni: class ReadUserIni:
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ # ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import requests.sessions import requests.sessions
from MyApiAutoTest_v3_3 import log from ApiAutoTest import log
from MyApiAutoTest_v3_3.common.db import DB from ApiAutoTest.common.db import DB
from MyApiAutoTest_v3_3.common.read_basic_ini import ReadBasicIni from ApiAutoTest.common.read_basic_ini import ReadBasicIni
class RequestsMethod: class RequestsMethod:
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ # ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import pytest import pytest
from MyApiAutoTest_v3_3.requests_method.requests_method import RequestsMethod from ApiAutoTest.requests_method.requests_method import RequestsMethod
# 会话级别的,一个程序只执行一次 # 会话级别的,一个程序只执行一次
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
import allure import allure
import pytest import pytest
from MyApiAutoTest_v3_3 import logor from ApiAutoTest import logor
from MyApiAutoTest_v3_3.common.read_excel import ReadExcel from ApiAutoTest.common.read_excel import ReadExcel
from MyApiAutoTest_v3_3.test_case.test_demo import USERNAME from ApiAutoTest.test_case.test_demo import USERNAME
class TestBPM: class TestBPM:
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ # ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import pytest import pytest
from MyApiAutoTest_v3_3.requests_method.requests_method import RequestsMethod from ApiAutoTest.requests_method.requests_method import RequestsMethod
# 会话级别的,一个程序只执行一次 # 会话级别的,一个程序只执行一次
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
import allure import allure
import pytest import pytest
from MyApiAutoTest_v3_3 import logor from ApiAutoTest import logor
from MyApiAutoTest_v3_3.common.read_excel import ReadExcel from ApiAutoTest.common.read_excel import ReadExcel
from MyApiAutoTest_v3_3.test_case.test_zs import USERNAME from ApiAutoTest.test_case.test_zs import USERNAME
class TestBPM: class TestBPM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment