Esempio n. 1
0
 def test_fetch_commits(self):
     self.assertEqual(Commit.objects.count(), 0)
     github_handler.fetch_commits(self.package)
     commit_list = "[%s]" % self.package.commits_over_52()
     commit_list = json.loads(commit_list)
     self.assertTrue(commit_list[0] > 0)
Esempio n. 2
0
 def test_fetch_commits(self):
     self.assertEqual(Commit.objects.count(), 0)
     github_handler.fetch_commits(self.package)
     self.assertNotEqual(Commit.objects.count(), 0)
Esempio n. 3
0
 def test_fetch_commits(self):
     self.assertEqual(Commit.objects.count(), 0)
     github_handler.fetch_commits(self.package)
     self.assertNotEqual(Commit.objects.count(), 0)
Esempio n. 4
0
 def test_fetch_commits(self):
     self.assertEqual(Commit.objects.count(), 0)
     github_handler.fetch_commits(self.package)
     commit_list = "[%s]" % self.package.commits_over_52()
     commit_list = json.loads(commit_list)
     self.assertTrue(commit_list[0] > 0)
Esempio n. 5
0
 def test_fetch_commits(self):
     import time
     time.sleep(10)
     self.assertEqual(Commit.objects.count(), 0)
     github_handler.fetch_commits(self.package)
     self.assertTrue(Commit.objects.count() > 0)