@@ -1778,7 +1778,7 @@ def factory(self, user, timestamp=None):
1778
1778
request = factory .request ()
1779
1779
request .contest = self .contest
1780
1780
request .user = user
1781
- request .timestamp = timestamp or self .during
1781
+ request .timestamp = timestamp or self .during
1782
1782
return request
1783
1783
1784
1784
def setUp (self ):
@@ -3825,7 +3825,7 @@ class TestRulesVisibility(TestCase):
3825
3825
'oioioi.oi.controllers.BOIOnlineContestController' ,
3826
3826
'oioioi.pa.controllers.PAContestController' ,
3827
3827
'oioioi.pa.controllers.PAFinalsContestController' ,
3828
- 'oioioi.programs.controllers.ProgrammingContestController'
3828
+ 'oioioi.programs.controllers.ProgrammingContestController'
3829
3829
]
3830
3830
3831
3831
# left to fill in when added, in order of the controllers above
@@ -3905,7 +3905,7 @@ class TestRulesVisibility(TestCase):
3905
3905
None
3906
3906
],
3907
3907
[
3908
- datetime (2012 , 8 , 15 , 20 , 27 , 58 , tzinfo = timezone .utc ),
3908
+ datetime (2012 , 8 , 15 , 20 , 27 , 58 , tzinfo = timezone .utc ),
3909
3909
datetime (2013 , 4 , 20 , 21 , 37 , 13 , tzinfo = timezone .utc )
3910
3910
],
3911
3911
[
@@ -3919,12 +3919,12 @@ def _set_problem_limits(self, url, limits_list):
3919
3919
problem = ProblemInstance .objects .get (pk = i + 1 )
3920
3920
problem .submissions_limit = limits_list [i ]
3921
3921
problem .save ()
3922
-
3922
+
3923
3923
response = self .client .get (url , follow = True )
3924
3924
self .assertEqual (response .status_code , 200 )
3925
3925
3926
3926
return response
3927
-
3927
+
3928
3928
def _set_results_dates (self , url , dates ):
3929
3929
round = Round .objects .get ()
3930
3930
round .results_date = dates [0 ]
@@ -3947,7 +3947,7 @@ def _change_controller(self, public_results=False):
3947
3947
'oioioi.programs.controllers.ProgrammingContestController'
3948
3948
)
3949
3949
contest .save ()
3950
-
3950
+
3951
3951
def test_dashboard_view (self ):
3952
3952
for c in self .controller_names :
3953
3953
contest = Contest .objects .get ()
@@ -3958,7 +3958,7 @@ def test_dashboard_view(self):
3958
3958
response = self .client .get (url , follow = True )
3959
3959
self .assertEqual (response .status_code , 200 )
3960
3960
self .assertContains (response , "Rules" )
3961
-
3961
+
3962
3962
def test_contest_type (self ):
3963
3963
for c , d in zip (self .controller_names , self .scoring_descriptions ):
3964
3964
contest = Contest .objects .get ()
@@ -4015,7 +4015,7 @@ def test_contest_dates(self):
4015
4015
contest = Contest .objects .get ()
4016
4016
contest .controller_name = c
4017
4017
contest .save ()
4018
-
4018
+
4019
4019
round = Round .objects .get ()
4020
4020
round .end_date = None
4021
4021
round .save ()
@@ -4042,7 +4042,7 @@ def test_ranking_visibility(self):
4042
4042
response = self ._set_results_dates (url , self .visibility_dates [0 ])
4043
4043
self .assertContains (response , "In round Round 1, your results as well as " \
4044
4044
"public ranking will be visible after 2012-08-15 20:27:58." )
4045
-
4045
+
4046
4046
self ._change_controller (public_results = True )
4047
4047
response = self ._set_results_dates (url , self .visibility_dates [1 ])
4048
4048
self .assertContains (response , "In round Round 1, your results will be visible after 2012-08-15 20:27:58" \
@@ -4054,7 +4054,7 @@ def test_ranking_visibility(self):
4054
4054
with fake_time (datetime (2012 , 12 , 24 , 11 , 23 , 56 , tzinfo = timezone .utc )):
4055
4055
response = self ._set_results_dates (url , self .visibility_dates [0 ])
4056
4056
self .assertContains (response , "In round Round 1, your results as well as public ranking will be visible immediately." )
4057
-
4057
+
4058
4058
self ._change_controller (public_results = True )
4059
4059
response = self ._set_results_dates (url , self .visibility_dates [1 ])
4060
4060
self .assertContains (response , "In round Round 1, your results will be visible immediately" \
@@ -4066,7 +4066,7 @@ def test_ranking_visibility(self):
4066
4066
with fake_time (datetime (2014 , 8 , 26 , 11 , 23 , 56 , tzinfo = timezone .utc )):
4067
4067
response = self ._set_results_dates (url , self .visibility_dates [0 ])
4068
4068
self .assertContains (response , "In round Round 1, your results as well as public ranking will be visible immediately." )
4069
-
4069
+
4070
4070
self ._change_controller (public_results = True )
4071
4071
response = self ._set_results_dates (url , self .visibility_dates [1 ])
4072
4072
self .assertContains (response , "In round Round 1, your results as well as public ranking will be visible immediately." )
0 commit comments