예제 #1
0
 def test_parse_repo_result_extra_has_key_language_stats(self):
     if self.urls:
         result = parse_repo(self.urls[0].get('url'))
         self.assertIn('language_stats', result.get('extra'))
예제 #2
0
 def test_parse_repo_result_extra_has_key_owner(self):
     if self.urls:
         result = parse_repo(self.urls[0].get('url'))
         self.assertIn('owner', result.get('extra'))
예제 #3
0
 def test_parse_repo_result_type(self):
     if self.urls:
         result = parse_repo(self.urls[0].get('url'))
         self.assertIsInstance(result, dict)
예제 #4
0
 def test_parse_repo_result_has_key_extra(self):
     if self.urls:
         result = parse_repo(self.urls[0].get('url'))
         self.assertIn('extra', result)
예제 #5
0
 def test_parse_repo_result_has_key_urls(self):
     if self.urls:
         result = parse_repo(self.urls[0].get('url'), self.proxy_list[0])
         self.assertIn('url', result)