Beispiel #1
0
 def test_by_commit(self):
     for commit, expected_migrations in COMMITS.items():
         response = get_added_migrations(commit)
         self.assertEqual(set(response), set(expected_migrations))
Beispiel #2
0
 def test_by_commit_with_error(self):
     with self.assertRaises(GitError):
         get_added_migrations("hopefully-non-existing-ref")
Beispiel #3
0
 def test_plain(self):
     response = get_added_migrations()
     self.assertEqual(response, [])