File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 77async 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 ()
You can’t perform that action at this time.
0 commit comments