Update pipfile

This commit is contained in:
zandercymatics 2023-10-16 13:33:11 -06:00
parent a9e4d34099
commit 7bb6bb9e7d
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
7 changed files with 36 additions and 41 deletions

View file

@ -22,6 +22,7 @@ logger = logging.getLogger(__name__)
@patch("djangooidc.views.CLIENT", autospec=True)
class TestConnectionPool(MockEppLib):
"""Tests for our connection pooling behaviour"""
def setUp(self):
"""
Background:
@ -33,9 +34,7 @@ class TestConnectionPool(MockEppLib):
# Current pool size
"size": 1,
# Which errors the pool should look out for
"exc_classes": (
TransportError,
),
"exc_classes": (TransportError,),
# Occasionally pings the registry to keep the connection alive.
# Value in seconds => (keepalive / size)
"keepalive": 60,
@ -43,7 +42,7 @@ class TestConnectionPool(MockEppLib):
def tearDown(self):
super().tearDown()
def user_info(*args):
return {
"sub": "TEST",
@ -69,16 +68,16 @@ class TestConnectionPool(MockEppLib):
# in client.py. They should remain unchanged,
# and if they aren't, something went wrong.
expected_login = commands.Login(
cl_id='nothing',
password='nothing',
cl_id="nothing",
password="nothing",
obj_uris=[
'urn:ietf:params:xml:ns:domain-1.0',
'urn:ietf:params:xml:ns:contact-1.0'
"urn:ietf:params:xml:ns:domain-1.0",
"urn:ietf:params:xml:ns:contact-1.0",
],
new_pw=None,
version='1.0',
lang='en',
ext_uris=[]
version="1.0",
lang="en",
ext_uris=[],
)
# Key/cert will generate a new file everytime.
@ -94,7 +93,7 @@ class TestConnectionPool(MockEppLib):
).__dict__
except Exception as err:
self.fail(err)
# We don't care about checking if the objects are both of
# the same reference, we only care about data parity, so
# we do a dict conversion.
@ -118,15 +117,14 @@ class TestConnectionPool(MockEppLib):
@skip("not implemented yet")
def test_pool_timesout(self):
"""The pool timesout and restarts"""
raise
raise
@skip("not implemented yet")
def test_multiple_users_send_data(self):
"""Multiple users send data concurrently"""
raise
@skip("not implemented yet")
def test_pool_sends_data(self):
"""A .send is invoked on the pool"""
raise