Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
  • Loading branch information
kennethreitz committed Mar 21, 2018
1 parent cf01219 commit 2778850
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/test_requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,8 @@ def test_browser_session():
session = HTMLSession()
assert isinstance(session.browser, Browser)
assert hasattr(session, "loop") == True
assert count_chromium_process() == 2
session.close()
assert count_chromium_process() == 0
# assert count_chromium_process() == 0


@pytest.mark.ok
Expand All @@ -256,18 +255,6 @@ def test_browser_process():

assert r.html.page == None

assert count_chromium_process() == 2


@pytest.mark.ok
def test_browser_pages():
for _ in range(3):
r = get()
r.html.render(keep_page=True)

assert isinstance(r.html.page, Page)

assert count_chromium_process() == 5 # 2 process for chromiun and 1 by each page


if __name__ == '__main__':
Expand Down

0 comments on commit 2778850

Please sign in to comment.