Commit b759cb78 by 李江源

重构项目

parent 8e618cb3
......@@ -8,8 +8,8 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import pymysql
from MyApiAutoTest_v3_3 import logor, log
from MyApiAutoTest_v3_3.common.read_basic_ini import ReadBasicIni
from ApiAutoTest import logor, log
from ApiAutoTest.common.read_basic_ini import ReadBasicIni
class DB:
......
......@@ -9,7 +9,7 @@
import configparser
import os.path
from MyApiAutoTest_v3_3 import log
from ApiAutoTest import log
class ReadBasicIni:
......
......@@ -8,11 +8,11 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import openpyxl
from MyApiAutoTest_v3_3 import log
from MyApiAutoTest_v3_3.common.read_basic_ini import ReadBasicIni
from MyApiAutoTest_v3_3.common.read_json import read_json
from MyApiAutoTest_v3_3.common.read_user_ini import ReadUserIni
from MyApiAutoTest_v3_3.data_config.settings import *
from ApiAutoTest import log
from ApiAutoTest.common.read_basic_ini import ReadBasicIni
from ApiAutoTest.common.read_json import read_json
from ApiAutoTest.common.read_user_ini import ReadUserIni
from ApiAutoTest.data_config.settings import *
class ReadExcel:
......
......@@ -9,7 +9,7 @@
import json
import os.path
from MyApiAutoTest_v3_3 import log, logor
from ApiAutoTest import log, logor
@log
......
......@@ -9,7 +9,7 @@
import configparser
import os.path
from MyApiAutoTest_v3_3 import log
from ApiAutoTest import log
class ReadUserIni:
......
......@@ -8,9 +8,9 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import requests.sessions
from MyApiAutoTest_v3_3 import log
from MyApiAutoTest_v3_3.common.db import DB
from MyApiAutoTest_v3_3.common.read_basic_ini import ReadBasicIni
from ApiAutoTest import log
from ApiAutoTest.common.db import DB
from ApiAutoTest.common.read_basic_ini import ReadBasicIni
class RequestsMethod:
......
......@@ -8,7 +8,7 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import pytest
from MyApiAutoTest_v3_3.requests_method.requests_method import RequestsMethod
from ApiAutoTest.requests_method.requests_method import RequestsMethod
# 会话级别的,一个程序只执行一次
@pytest.fixture(scope="session")
......
......@@ -9,9 +9,9 @@
import allure
import pytest
from MyApiAutoTest_v3_3 import logor
from MyApiAutoTest_v3_3.common.read_excel import ReadExcel
from MyApiAutoTest_v3_3.test_case.test_demo import USERNAME
from ApiAutoTest import logor
from ApiAutoTest.common.read_excel import ReadExcel
from ApiAutoTest.test_case.test_demo import USERNAME
class TestBPM:
......
......@@ -8,7 +8,7 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import pytest
from MyApiAutoTest_v3_3.requests_method.requests_method import RequestsMethod
from ApiAutoTest.requests_method.requests_method import RequestsMethod
# 会话级别的,一个程序只执行一次
@pytest.fixture(scope="session")
......
......@@ -9,9 +9,9 @@
import allure
import pytest
from MyApiAutoTest_v3_3 import logor
from MyApiAutoTest_v3_3.common.read_excel import ReadExcel
from MyApiAutoTest_v3_3.test_case.test_zs import USERNAME
from ApiAutoTest import logor
from ApiAutoTest.common.read_excel import ReadExcel
from ApiAutoTest.test_case.test_zs import USERNAME
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