File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
scheduler/tests/test_task_types Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ def test_admin_change_view__has_execution_list(self):
48
48
self .assertContains (res , task .job_name , status_code = 200 )
49
49
self .assertContains (res , "Scheduled" , status_code = 200 )
50
50
self .assertContains (res , """<span id="counter">1""" , status_code = 200 )
51
+ self .assertFalse (res .context ["pagination_required" ])
52
+ self .assertEqual (res .context ["executions" ].paginator .count , 1 )
51
53
52
54
@time_machine .travel (datetime (2016 , 12 , 25 ))
53
55
def test_admin_change_view__has_empty_execution_list (self ):
@@ -64,6 +66,8 @@ def test_admin_change_view__has_empty_execution_list(self):
64
66
self .assertContains (res , "Job executions" )
65
67
self .assertContains (res , """<table id="result_list">""" )
66
68
self .assertContains (res , """<span id="counter">0""" , status_code = 200 )
69
+ self .assertFalse (res .context ["pagination_required" ])
70
+ self .assertEqual (res .context ["executions" ].paginator .count , 0 )
67
71
68
72
def test_create_without_date__fail (self ):
69
73
task = task_factory (self .task_type , scheduled_time = None , instance_only = True )
You can’t perform that action at this time.
0 commit comments