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.
()
| 305 | |
| 306 | @pytest.mark.ok |
| 307 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…