mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
change: remove support for Python 2.7
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import io
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from httprunner.cli import main
|
||||
from httprunner.compat import io
|
||||
|
||||
|
||||
class TestCli(unittest.TestCase):
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import requests
|
||||
|
||||
from httprunner import exceptions, response
|
||||
from httprunner.compat import basestring, bytes
|
||||
from tests.api_server import HTTPBIN_SERVER
|
||||
from tests.base import ApiServerUnittest
|
||||
|
||||
@@ -257,7 +256,7 @@ class TestResponse(ApiServerUnittest):
|
||||
]
|
||||
extract_binds_dict = resp_obj.extract_response(extract_binds_list)
|
||||
|
||||
self.assertIsInstance(extract_binds_dict["resp_content"], basestring)
|
||||
self.assertIsInstance(extract_binds_dict["resp_content"], str)
|
||||
self.assertIn("httpbin.org", extract_binds_dict["resp_content"])
|
||||
|
||||
extract_binds_list = [
|
||||
|
||||
Reference in New Issue
Block a user