mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
change: remove unused code
This commit is contained in:
@@ -1,81 +0,0 @@
|
||||
""" failure type exceptions
|
||||
these exceptions will mark test as failure
|
||||
"""
|
||||
|
||||
|
||||
class MyBaseFailure(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ParseTestsFailure(MyBaseFailure):
|
||||
pass
|
||||
|
||||
|
||||
class ValidationFailure(MyBaseFailure):
|
||||
pass
|
||||
|
||||
|
||||
class ExtractFailure(MyBaseFailure):
|
||||
pass
|
||||
|
||||
|
||||
class SetupHooksFailure(MyBaseFailure):
|
||||
pass
|
||||
|
||||
|
||||
class TeardownHooksFailure(MyBaseFailure):
|
||||
pass
|
||||
|
||||
|
||||
""" error type exceptions
|
||||
these exceptions will mark test as error
|
||||
"""
|
||||
|
||||
|
||||
class MyBaseError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class FileFormatError(MyBaseError):
|
||||
pass
|
||||
|
||||
|
||||
class ParamsError(MyBaseError):
|
||||
pass
|
||||
|
||||
|
||||
class NotFoundError(MyBaseError):
|
||||
pass
|
||||
|
||||
|
||||
class FileNotFound(FileNotFoundError, NotFoundError):
|
||||
pass
|
||||
|
||||
|
||||
class FunctionNotFound(NotFoundError):
|
||||
pass
|
||||
|
||||
|
||||
class VariableNotFound(NotFoundError):
|
||||
pass
|
||||
|
||||
|
||||
class EnvNotFound(NotFoundError):
|
||||
pass
|
||||
|
||||
|
||||
class CSVNotFound(NotFoundError):
|
||||
pass
|
||||
|
||||
|
||||
class ApiNotFound(NotFoundError):
|
||||
pass
|
||||
|
||||
|
||||
class TestcaseNotFound(NotFoundError):
|
||||
pass
|
||||
|
||||
|
||||
class SummaryEmpty(MyBaseError):
|
||||
""" test result summary data is empty
|
||||
"""
|
||||
@@ -4,7 +4,7 @@ import re
|
||||
from typing import Any, Set, Text, Callable, List, Dict
|
||||
|
||||
from httprunner import loader, utils
|
||||
from httprunner.v3 import exceptions
|
||||
from httprunner import exceptions
|
||||
from httprunner.v3.schema import VariablesMapping, FunctionsMapping
|
||||
|
||||
absolute_http_url_regexp = re.compile(r"^https?://", re.I)
|
||||
|
||||
@@ -2,7 +2,7 @@ import time
|
||||
import unittest
|
||||
|
||||
from httprunner.v3 import parser
|
||||
from httprunner.v3.exceptions import VariableNotFound, FunctionNotFound
|
||||
from httprunner.exceptions import VariableNotFound, FunctionNotFound
|
||||
|
||||
|
||||
class TestParserBasic(unittest.TestCase):
|
||||
|
||||
@@ -4,7 +4,7 @@ import jmespath
|
||||
import requests
|
||||
from loguru import logger
|
||||
|
||||
from httprunner.v3.exceptions import ValidationFailure, ParamsError
|
||||
from httprunner.exceptions import ValidationFailure, ParamsError
|
||||
from httprunner.v3.parser import parse_data, parse_string_value, get_mapping_function
|
||||
from httprunner.v3.schema import VariablesMapping, Validators, FunctionsMapping
|
||||
from httprunner.v3.validator import uniform_validator
|
||||
|
||||
@@ -4,7 +4,7 @@ from loguru import logger
|
||||
|
||||
from httprunner import utils
|
||||
from httprunner.client import HttpSession
|
||||
from httprunner.v3.exceptions import ValidationFailure
|
||||
from httprunner.exceptions import ValidationFailure
|
||||
from httprunner.v3.parser import build_url, parse_data, parse_variables_mapping
|
||||
from httprunner.v3.response import ResponseObject
|
||||
from httprunner.v3.schema import TestsConfig, TestStep, VariablesMapping, TestCase
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Text
|
||||
|
||||
from httprunner.v3.exceptions import ParamsError
|
||||
from httprunner.exceptions import ParamsError
|
||||
|
||||
|
||||
def get_uniform_comparator(comparator: Text):
|
||||
|
||||
Reference in New Issue
Block a user