Skip to content

Commit

Permalink
fix(api): fixed missing "/api/" in kill method
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdiwahada committed Jan 8, 2025
1 parent d0dc243 commit b264ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/antares_web_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def kill(self):
It also kills the AntaresWebDesktop instance.
"""
session = requests.Session()
res = session.get(self.url + "/v1/studies")
res = session.get(self.url + "/api/v1/studies")
studies = res.json()
for study in studies:
session.delete(self.url + f"/v1/studies/{study}?children=True")
session.delete(self.url + f"/api/v1/studies/{study}?children=True")
self.process.terminate()
self.process.wait()
pids = subprocess.run(["pgrep AntaresWeb"], capture_output=True, shell=True).stdout.split()
Expand Down

0 comments on commit b264ced

Please sign in to comment.