@@ -1141,6 +1141,7 @@ def test_edit_doc_extresources(self):
11411141
11421142 badlines = (
11431143 'github_repo https://github3.com/some/repo' ,
1144+ 'github_org https://github.com/not/an_org' ,
11441145 'github_notify badaddr' ,
11451146 'website /not/a/good/url' ,
11461147 'notavalidtag blahblahblah' ,
@@ -1154,6 +1155,7 @@ def test_edit_doc_extresources(self):
11541155
11551156 goodlines = """
11561157 github_repo https://github.com/some/repo Some display text
1158+ github_org https://github.com/totally_some_org
11571159 github_username githubuser
11581160 webpage http://example.com/http/is/fine
11591161 """
@@ -1163,7 +1165,7 @@ def test_edit_doc_extresources(self):
11631165 doc = Document .objects .get (name = self .docname )
11641166 self .assertEqual (doc .latest_event (DocEvent ,type = "changed_document" ).desc [:35 ], 'Changed document external resources' )
11651167 self .assertIn ('github_username githubuser' , doc .latest_event (DocEvent ,type = "changed_document" ).desc )
1166- self .assertEqual (doc .docextresource_set .count (), 3 )
1168+ self .assertEqual (doc .docextresource_set .count (), 4 )
11671169 self .assertEqual (doc .docextresource_set .get (name__slug = 'github_repo' ).display_name , 'Some display text' )
11681170 self .assertIn (doc .docextresource_set .first ().name .slug ,str (doc .docextresource_set .first ()))
11691171
0 commit comments