Test case docstring.
| 3 | |
| 4 | |
| 5 | class 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() |
nothing calls this directly
no outgoing calls
no test coverage detected