8
8
from messages_extends .models import Message
9
9
10
10
from readthedocs .builds import tasks as build_tasks
11
- from readthedocs .builds .constants import (
12
- BUILD_STATUS_SUCCESS ,
13
- EXTERNAL ,
14
- LATEST ,
15
- )
11
+ from readthedocs .builds .constants import BUILD_STATUS_SUCCESS , EXTERNAL , LATEST
16
12
from readthedocs .builds .models import Build , Version
17
13
from readthedocs .oauth .models import RemoteRepository , RemoteRepositoryRelation
18
14
from readthedocs .projects .models import Project
@@ -105,7 +101,6 @@ def test_send_build_status_with_remote_repo_github(self, send_build_status):
105
101
build = external_build ,
106
102
commit = external_build .commit ,
107
103
state = BUILD_STATUS_SUCCESS ,
108
- link_to_build = False ,
109
104
)
110
105
self .assertEqual (Message .objects .filter (user = self .eric ).count (), 0 )
111
106
@@ -125,7 +120,9 @@ def test_send_build_status_with_social_account_github(self, send_build_status):
125
120
)
126
121
127
122
send_build_status .assert_called_once_with (
128
- external_build , external_build .commit , BUILD_STATUS_SUCCESS
123
+ external_build ,
124
+ external_build .commit ,
125
+ BUILD_STATUS_SUCCESS ,
129
126
)
130
127
self .assertEqual (Message .objects .filter (user = self .eric ).count (), 0 )
131
128
@@ -171,7 +168,6 @@ def test_send_build_status_with_remote_repo_gitlab(self, send_build_status):
171
168
build = external_build ,
172
169
commit = external_build .commit ,
173
170
state = BUILD_STATUS_SUCCESS ,
174
- link_to_build = False ,
175
171
)
176
172
self .assertEqual (Message .objects .filter (user = self .eric ).count (), 0 )
177
173
@@ -191,7 +187,9 @@ def test_send_build_status_with_social_account_gitlab(self, send_build_status):
191
187
)
192
188
193
189
send_build_status .assert_called_once_with (
194
- external_build , external_build .commit , BUILD_STATUS_SUCCESS
190
+ external_build ,
191
+ external_build .commit ,
192
+ BUILD_STATUS_SUCCESS ,
195
193
)
196
194
self .assertEqual (Message .objects .filter (user = self .eric ).count (), 0 )
197
195
@@ -209,4 +207,3 @@ def test_send_build_status_no_remote_repo_or_social_account_gitlab(self, send_bu
209
207
210
208
send_build_status .assert_not_called ()
211
209
self .assertEqual (Message .objects .filter (user = self .eric ).count (), 1 )
212
-
0 commit comments