bugfix: adjust functions location to avoid cross reference

This commit is contained in:
httprunner
2017-09-18 16:01:19 +08:00
parent cb2555291c
commit 8c05afaed5
9 changed files with 251 additions and 243 deletions

View File

@@ -1,6 +1,9 @@
import os
from ate import task
from ate.testcase import load_testcases_by_path
from tests.base import ApiServerUnittest
from ate import task, utils
class TestTask(ApiServerUnittest):
@@ -14,7 +17,7 @@ class TestTask(ApiServerUnittest):
def test_create_suite(self):
testcase_file_path = os.path.join(os.getcwd(), 'tests/data/demo_testset_variables.yml')
testsets = utils.load_testcases_by_path(testcase_file_path)
testsets = load_testcases_by_path(testcase_file_path)
suite = task.create_suite(testsets[0])
self.assertEqual(suite.countTestCases(), 3)
for testcase in suite: