@@ -196,31 +196,14 @@ def test_validate_max_size(self):
196
196
197
197
def test_non_en_url_stripping (self ):
198
198
simple_builder_test = SimpleBuilder ()
199
- expected = (['Statue_of_Liberty ' , 'Indonésie ' , 'Marie_Curie' ], [], [])
199
+ expected = (['Portugal ' , 'Europa ' , 'Marie_Curie' ], [], [])
200
200
params = {
201
201
'list' : [
202
- 'https://en .wikipedia.org/wiki/Statue_of_Liberty ' ,
203
- 'https://fr .wikipedia.org/wiki/Indon%C3%A9sie ' ,
202
+ 'https://de .wikipedia.org/wiki/Portugal ' ,
203
+ 'https://de .wikipedia.org/wiki/Europa ' ,
204
204
'https://de.wikipedia.org/w/index.php?title=Marie_Curie'
205
205
],
206
- 'project' : 'project_name'
207
- }
208
- actual = simple_builder_test .validate (** params )
209
- self .assertEqual (expected , actual )
210
-
211
- def test_non_wikipedia_domain_invalid (self ):
212
- simple_builder_test = SimpleBuilder ()
213
- expected = (['Marie_Curie' ], [
214
- 'https://en.wiki.org/wiki/Statue_of_Liberty' ,
215
- 'https://fr.wiktionary.org/wiki/Indonésie' ,
216
- ], [])
217
- params = {
218
- 'list' : [
219
- 'https://en.wiki.org/wiki/Statue_of_Liberty' ,
220
- 'https://fr.wiktionary.org/wiki/Indon%C3%A9sie' ,
221
- 'https://de.wikipedia.org/w/index.php?title=Marie_Curie'
222
- ],
223
- 'project' : 'project_name'
206
+ 'project' : 'de.wikipedia.org'
224
207
}
225
208
actual = simple_builder_test .validate (** params )
226
209
self .assertEqual (expected , actual )
0 commit comments