@@ -134,12 +134,12 @@ def setUp(self):
134
134
self .client .login (username = 'test_user' , password = 'test' )
135
135
self .pip = Project .objects .get (slug = 'pip' )
136
136
print (self .pip .versions .all ())
137
- # Create a External Version and build. ie: PULL_REQUEST type Version.
137
+ # Create a External Version and build. ie: pull/merge request Version.
138
138
self .pr_version = get (
139
139
Version ,
140
140
project = self .pip ,
141
141
active = True ,
142
- type = PULL_REQUEST ,
142
+ type = EXTERNAL ,
143
143
privacy_level = PUBLIC
144
144
)
145
145
self .pr_version_build = get (
@@ -154,15 +154,15 @@ def setUp(self):
154
154
version = self .pip .versions .get (slug = '0.8' )
155
155
)
156
156
157
- self .internal_builds = Build .objects .exclude (version__type = PULL_REQUEST )
157
+ self .internal_builds = Build .objects .exclude (version__type = EXTERNAL )
158
158
159
159
160
160
class TestInternalBuildManager (TestBuildManagerBase ):
161
161
162
162
"""
163
163
Queries using Internal Manager should only include Internal Version builds.
164
164
165
- It will exclude PULL_REQUEST type Version builds from the queries
165
+ It will exclude pull/merge request Version builds from the queries
166
166
and only include BRANCH, TAG, UNKONWN type Versions.
167
167
"""
168
168
@@ -187,7 +187,7 @@ class TestExternalBuildManager(TestBuildManagerBase):
187
187
"""
188
188
Queries using External Manager should only include External Version builds.
189
189
190
- It will only include PULL_REQUEST type Version builds in the queries.
190
+ It will only include pull/merge request Version builds in the queries.
191
191
"""
192
192
193
193
def test_external_build_manager_with_all (self ):
0 commit comments