Skip to content

Commit 76c4452

Browse files
authored
Fix linter error (#831)
* Fix linter error Lint error introduced in #830, fix a few more assertTrue->assertEqual issues (separately, figure out why tests don't run when @code-review-doctor submits PRs) * Update test_dashboard.py * Update test_dashboard.py
1 parent d1b77c6 commit 76c4452

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

orchestra/tests/test_dashboard.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ def test_task_creation(self):
5757
.filter(task__step=machine_step,
5858
task__project=project)[0])
5959

60-
self.assertTrue(machine_task_assignment.status,
61-
TaskAssignment.Status.SUBMITTED)
60+
self.assertEqual(machine_task_assignment.status,
61+
TaskAssignment.Status.SUBMITTED)
6262

6363
self.assertEqual(machine_task_assignment.in_progress_task_data,
64-
{'simple': 'json'})
64+
{'json': 'simple'})
6565

66-
self.assertTrue(machine_task_assignment.task.status,
67-
Task.Status.COMPLETE)
66+
self.assertEqual(machine_task_assignment.task.status,
67+
Task.Status.COMPLETE)
6868

6969
def test_index(self):
7070
response = self.clients[0].get('/orchestra/app/')

0 commit comments

Comments
 (0)