mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-20 23:59:49 +08:00
#169: add builtin support for uploading files
This commit is contained in:
@@ -98,3 +98,11 @@ class TestHttpRunner(ApiServerUnittest):
|
||||
self.assertTrue(summary["success"])
|
||||
self.assertEqual(summary["stat"]["testsRun"], 2)
|
||||
self.assertIn("records", summary)
|
||||
|
||||
def test_run_yaml_upload(self):
|
||||
testset_path = "tests/httpbin/upload.yml"
|
||||
runner = HttpRunner().run(testset_path)
|
||||
summary = runner.summary
|
||||
self.assertTrue(summary["success"])
|
||||
self.assertEqual(summary["stat"]["testsRun"], 1)
|
||||
self.assertIn("records", summary)
|
||||
|
||||
Reference in New Issue
Block a user