(dom, edit)
| 136 | assert dom.xpath(f'//script[contains(., "const SUCCESS = [")][contains(., "{message}")][contains(., "/bookmark/details/?id={id}&")]') |
| 137 | |
| 138 | def assert_failure_alert(dom, edit): |
| 139 | assert dom.xpath(xpath_alert('danger', f'Failed to {"update" if edit else "create"} record. Duplicate URL')), 'alert missing' |
| 140 | assert not dom.xpath('//script[contains(., "const SUCCESS = [")][contains(., "/bookmark/details/?id=")]') |
| 141 | |
| 142 | def assert_response(response, uri, *, status=200, argnames=None, args=None): |
| 143 | assert response.status_code == status |
no outgoing calls
no test coverage detected