Skip to content

Commit

Permalink
fbcode//torchx/runner/test [A]
Browse files Browse the repository at this point in the history
Differential Revision: D68637488

Pull Request resolved: #1003
  • Loading branch information
itamaro authored Jan 29, 2025
1 parent 1bad89a commit ef3b35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchx/runner/test/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def test_status_ui_url(self, json_dumps_mock: MagicMock, _) -> None:
)
app_handle = runner.run(AppDef(app_id, roles=[role]), scheduler="local_dir")
status = none_throws(runner.status(app_handle))
self.assertEquals(resp.ui_url, status.ui_url)
self.assertEqual(resp.ui_url, status.ui_url)

@patch("json.dumps")
def test_status_structured_msg(self, json_dumps_mock: MagicMock, _) -> None:
Expand All @@ -493,7 +493,7 @@ def test_status_structured_msg(self, json_dumps_mock: MagicMock, _) -> None:
)
app_handle = runner.run(AppDef(app_id, roles=[role]), scheduler="local_dir")
status = none_throws(runner.status(app_handle))
self.assertEquals(resp.structured_error_msg, status.structured_error_msg)
self.assertEqual(resp.structured_error_msg, status.structured_error_msg)

def test_wait_unknown_app(self, _) -> None:
with self.get_runner() as runner:
Expand Down

0 comments on commit ef3b35f

Please sign in to comment.