mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Renamed dummyserver to testserver
This commit is contained in:
+2
-2
@@ -29,7 +29,7 @@ from requests.structures import CaseInsensitiveDict
|
||||
from requests.sessions import SessionRedirectMixin
|
||||
from requests.models import urlencode
|
||||
from requests.hooks import default_hooks
|
||||
from dummyserver.server import Server
|
||||
from testserver.server import Server
|
||||
import socket
|
||||
|
||||
try:
|
||||
@@ -1738,7 +1738,7 @@ def test_vendor_aliases():
|
||||
with pytest.raises(ImportError):
|
||||
from requests.packages import webbrowser
|
||||
|
||||
class TestDummyServer(unittest.TestCase):
|
||||
class TestTestServer(unittest.TestCase):
|
||||
def test_basic(self):
|
||||
question = b"sucess?"
|
||||
answer = b"yeah, success"
|
||||
|
||||
Binary file not shown.
@@ -2,11 +2,8 @@
|
||||
|
||||
import threading, socket
|
||||
|
||||
|
||||
|
||||
|
||||
class Server(threading.Thread):
|
||||
""" Dummy server using for unit testing """
|
||||
""" Basic socket server used for unit testing """
|
||||
|
||||
def __init__(self, handler, host='localhost', port=8021):
|
||||
threading.Thread.__init__(self)
|
||||
Reference in New Issue
Block a user