Skip to content
Snippets Groups Projects
Commit cd10f4a3 authored by Georges Racinet's avatar Georges Racinet
Browse files

Project.webdriver_destroy: simpler check for effective destruction

It's a good thing not to rely on webdriver methods for this, as it
is faster and more stable.
parent 11512893
No related branches found
No related tags found
1 merge request!38Cleanups
......@@ -730,7 +730,6 @@
return resp
def webdriver_destroy(self, skip_missing=False):
heptapod = self.heptapod
driver = self.owner_webdriver
driver.get(self.url + '/edit')
if skip_missing and '404' in driver.title:
......@@ -776,7 +775,7 @@
# still exists in database is an error cause.
time.sleep(1)
driver.get(driver.current_url)
assert retrieve(driver, heptapod, self.group, self.name) is None
assert self.owner_api_get().status_code == 404
def cleanup_teardown(self):
"""Cleanup files even if destroy() failed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment