Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
test: Contest status test case
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizaMaluf committed Nov 4, 2023
1 parent bd2b726 commit 05ee3e8
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions apps/contests/tests_contests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,15 @@ def test_status_cancelled(self) -> None:
self.assertEqual(self.contest.status, ContestStatus.CANCELLED)


class IndexViewTestCase(TestCase):
pass
class TestContestStatus(TestCase):
def test_pending(self) -> None:
self.assertEqual(ContestStatus.PENDING, "Pending")

def test_running(self) -> None:
self.assertEqual(ContestStatus.RUNNING, "Running")

class DetailViewTestCase(TestCase):
pass
def test_finished(self) -> None:
self.assertEqual(ContestStatus.FINISHED, "Finished")


class ContestTestCase(TestCase):
pass


class ContestStatusTestCase(TestCase):
pass


class ContestAdminTestCase(TestCase):
pass
def test_cancelled(self) -> None:
self.assertEqual(ContestStatus.CANCELLED, "Cancelled")

0 comments on commit 05ee3e8

Please sign in to comment.