Skip to content

Commit

Permalink
added tests to private _test_webapi
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerflex committed May 27, 2022
1 parent 8f90f3d commit 8864daf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/_test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,28 @@ def test_webapi_6_load():
_ = sim_data[first_monitor_name]


@clear_tmp
def test_webapi_7_download_json():
"""download the simulation data"""
task_id = _get_gloabl_task_id()
web.download_json(task_id)


@clear_tmp
def test_webapi_8_download_log():
"""download the simulation data"""
task_id = _get_gloabl_task_id()
web.download_log(task_id)


@clear_tmp
def test_webapi_9_load_simulation():
"""download the simulation data"""
task_id = _get_gloabl_task_id()
sim = web.load_simulation(task_id)
assert sim == sim_original


# For some reason this test interferes with tests 5 and 6
# def test_webapi_7_delete():
# """test that we can monitor task"""
Expand Down

0 comments on commit 8864daf

Please sign in to comment.