feat: hrun supports run pytest files

This commit is contained in:
debugtalk
2020-06-03 21:08:45 +08:00
parent 0e9513afa0
commit f03f9003f9
5 changed files with 20 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ class TestHar(TestHar2CaseUtils):
self.assertIn("validate", teststeps[0])
def test_gen_testcase_yaml(self):
yaml_file = os.path.join(os.path.dirname(__file__), "data", "demo.yaml")
yaml_file = os.path.join(os.path.dirname(__file__), "data", "demo.yml")
self.har_parser.gen_testcase(file_type="YAML")
self.assertTrue(os.path.isfile(yaml_file))