Skip to content

Commit

Permalink
fbcode//torchx/schedulers/test
Browse files Browse the repository at this point in the history
Differential Revision: D67847525
  • Loading branch information
CodemodService PythonDeprecatedAssertsBot authored and facebook-github-bot committed Jan 6, 2025
1 parent 5e44f20 commit ccc2be1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions torchx/schedulers/test/aws_batch_scheduler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def worker() -> None:

def test_resource_requirement_from_resource(self) -> None:
cpu_resource = Resource(cpu=2, memMB=1024, gpu=0)
self.assertEquals(
self.assertEqual(
[
{"type": "VCPU", "value": "2"},
{"type": "MEMORY", "value": "1024"},
Expand All @@ -765,7 +765,7 @@ def test_resource_requirement_from_resource(self) -> None:
)

zero_cpu_resource = Resource(cpu=0, memMB=1024, gpu=0)
self.assertEquals(
self.assertEqual(
[
{"type": "VCPU", "value": "1"},
{"type": "MEMORY", "value": "1024"},
Expand All @@ -774,7 +774,7 @@ def test_resource_requirement_from_resource(self) -> None:
)

gpu_resource = Resource(cpu=1, memMB=1024, gpu=2)
self.assertEquals(
self.assertEqual(
[
{"type": "VCPU", "value": "1"},
{"type": "MEMORY", "value": "1024"},
Expand Down
4 changes: 2 additions & 2 deletions torchx/schedulers/test/kubernetes_scheduler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def test_create_scheduler(self) -> None:
docker_client = MagicMock
scheduler = create_scheduler("foo", client=client, docker_client=docker_client)
self.assertIsInstance(scheduler, kubernetes_scheduler.KubernetesScheduler)
self.assertEquals(scheduler._docker_client, docker_client)
self.assertEquals(scheduler._client, client)
self.assertEqual(scheduler._docker_client, docker_client)
self.assertEqual(scheduler._client, client)

def test_app_to_resource_resolved_macros(self) -> None:
app = _test_app()
Expand Down

0 comments on commit ccc2be1

Please sign in to comment.