MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / TestClass

Class TestClass

grabql-service/backend/tests/test_grabql.py:5–22  ·  view source on GitHub ↗

Test case docstring.

Source from the content-addressed store, hash-verified

3
4
5class TestClass(unittest.TestCase):
6 """Test case docstring."""
7 def setUp(self):
8 pass
9
10 def tearDown(self):
11 pass
12
13 def test_grab(self):
14 with sync_playwright() as p:
15 # for browser_type in [p.chromium, p.firefox, p.webkit]:
16 for browser_type in [p.chromium]:
17 browser = browser_type.launch()
18 page = browser.new_page()
19 page.set_viewport_size({"width": 640, "height": 480})
20 page.goto('http://whatsmyuseragent.org/')
21 page.screenshot(path=f'example-{browser_type.name}.png')
22 browser.close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected