Skip to content

Commit 496dbf7

Browse files
committed
modifying test file to fix build
1 parent d69a4ed commit 496dbf7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/test_httputils.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
async def test_setup_teardown_client_session():
88
with pytest.raises(AttributeError):
99
# Ensure client_session is undefined prior to setup
10-
httputils.CLIENT_SESSION
10+
httputils.Session.getClientSession()
1111

12-
await httputils.setup_client_session()
12+
await httputils.Session.setup_client_session()
1313

14-
assert httputils.CLIENT_SESSION
14+
assert httputils.Session.getClientSession()
1515

16-
await httputils.teardown_client_session()
17-
assert httputils.CLIENT_SESSION.closed
16+
await httputils.Session.teardown_client_session()
17+
assert httputils.Session.getClientSession().closed
1818

19-
del httputils.CLIENT_SESSION
19+
del httputils.Session.getClientSession()
20+
21+
del httputils.Session.getClientSession()

0 commit comments

Comments
 (0)