mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 17:29:56 +08:00
test: add test for debugging pytest
This commit is contained in:
@@ -2,6 +2,8 @@ import io
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import pytest
|
||||
|
||||
from httprunner.cli import main
|
||||
|
||||
|
||||
@@ -36,3 +38,6 @@ class TestCli(unittest.TestCase):
|
||||
from httprunner import __description__
|
||||
|
||||
self.assertIn(__description__, self.captured_output.getvalue().strip())
|
||||
|
||||
def test_debug_pytest(self):
|
||||
pytest.main(["-s", "examples/postman_echo/request_methods/request_with_variables_test.py"])
|
||||
|
||||
@@ -115,9 +115,9 @@ class RequestData(BaseModel):
|
||||
|
||||
class ResponseData(BaseModel):
|
||||
status_code: int
|
||||
headers: Dict
|
||||
cookies: Cookies
|
||||
encoding: Union[Text, None] = None
|
||||
headers: Dict
|
||||
content_type: Text
|
||||
body: Union[Text, bytes, Dict]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user