MCPcopy Index your code
hub / github.com/psf/requests-html / test_browser_session

Function test_browser_session

tests/test_requests_html.py:307–315  ·  view source on GitHub ↗

Test browser instaces is created and properly close when session is closed. Note: session.close method need to be tested together with browser creation, since no doing that will left the browser running.

()

Source from the content-addressed store, hash-verified

305
306@pytest.mark.ok
307def test_browser_session():
308 """ Test browser instaces is created and properly close when session is closed.
309 Note: session.close method need to be tested together with browser creation,
310 since no doing that will left the browser running. """
311 session = HTMLSession()
312 assert isinstance(session.browser, Browser)
313 assert hasattr(session, "loop") == True
314 session.close()
315 # assert count_chromium_process() == 0
316
317
318@pytest.mark.ok

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
HTMLSessionClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…