fix #84: type_match invalid

This commit is contained in:
httprunner
2018-01-17 12:49:02 +08:00
parent 85a76a12d2
commit d4048c066c
4 changed files with 36 additions and 1 deletions

View File

@@ -144,3 +144,15 @@ class TestRunner(ApiServerUnittest):
test_dict_headers
)
self.assertEqual(headers["Content-Type"], "application/json")
def test_bugfix_type_match(self):
testcase_file_path = os.path.join(
os.getcwd(), 'tests/data/test_bugfix.yml')
testcases = testcase._load_file(testcase_file_path)
config_dict = {
"path": testcase_file_path
}
self.test_runner.init_config(config_dict, "testset")
test = testcases[2]["test"]
self.assertTrue(self.test_runner._run_test(test))