test: add test for debugging pytest

This commit is contained in:
debugtalk
2020-05-22 14:47:12 +08:00
parent 9327b232bc
commit 055fae6d93
2 changed files with 6 additions and 1 deletions

View File

@@ -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"])

View File

@@ -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]