Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fbcode//torchx/schedulers/test #996

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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