Skip to content
Snippets Groups Projects
Commit 3af40b9e authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Confirm that draft rounds are not shown

parent 7dfa66a6
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,12 @@ class TestFundModel(TestCase):
RoundFactory(start_date=next_round_start, end_date=None, parent=self.fund)
self.assertEqual(self.fund.open_round, open_round)
def test_can_not_be_open_with_draft_round(self):
new_round = RoundFactory(parent=self.fund)
new_round.live = False
new_round.save()
self.assertEqual(self.fund.open_round, None)
class TestRoundModel(TestCase):
def setUp(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment