mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 14:29:44 +08:00
change: simplify testcase import
This commit is contained in:
@@ -10,13 +10,10 @@ from httprunner.exceptions import TestCaseFormatError
|
||||
from httprunner.loader import load_testcase_file, load_folder_files
|
||||
|
||||
__TMPL__ = """# NOTICE: Generated By HttpRunner. DO'NOT EDIT!
|
||||
import unittest
|
||||
|
||||
from httprunner.runner import HttpRunner
|
||||
from httprunner.schema import TConfig, TStep
|
||||
from httprunner import HttpRunner, TConfig, TStep, TestCase
|
||||
|
||||
|
||||
class {{ class_name }}(unittest.TestCase):
|
||||
class {{ class_name }}(TestCase):
|
||||
config = TConfig(**{{ config }})
|
||||
|
||||
teststeps = [
|
||||
|
||||
Reference in New Issue
Block a user