Skip to content

Commit

Permalink
Re-enable test
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed May 29, 2024
1 parent 26d6091 commit 8df33f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions tests/covalent_tests/workflow/lattice_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@

def test_lattice_draw(mocker, capsys):
draw_preview_url = get_ui_url("/preview")
mock_send_draw_req = mocker.patch("covalent_ui.result_webhook.send_draw_request")
mock_webbrowser_open = mocker.patch("webbrowser.open")

@ct.electron(executor="local")
@ct.electron
def task(x):
return x

@ct.lattice(executor="local", workflow_executor="local")
@ct.lattice
def workflow(x):
return task(x)

Expand All @@ -47,6 +48,7 @@ def workflow(x):
== f"To preview the transport graph of the lattice, visit {draw_preview_url}\n"
)

mock_send_draw_req.assert_called_once()
mock_webbrowser_open.assert_called_once()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ async def test_send_update():
assert response is None


@pytest.mark.skip(reason="Test is breaking, need to fix see PR #1728")
def test_send_draw_request():
"""Test draw request"""
workflow = get_mock_simple_workflow()
lattice = Lattice.deserialize_from_json(workflow.serialize_to_json())
lattice = get_mock_simple_workflow()
lattice.build_graph(3)
response = send_draw_request(lattice)
assert response is None

0 comments on commit 8df33f0

Please sign in to comment.