Remove the test case test_pristine_has_commit.
authorwanchao-xu <wanchao.xu@samsung.com>
Fri, 29 Mar 2024 08:06:28 +0000 (16:06 +0800)
committerwanchao-xu <wanchao.xu@samsung.com>
Fri, 29 Mar 2024 08:36:21 +0000 (16:36 +0800)
  * Test case test_pristine_has_commit depends on pristine-tar package, and the pristine-tar of gbs tools will be used while building.
  * Test case test_pristine_has_commit will failed because pristine-tar package is old.

Change-Id: Id92bae0ae32bef145bf410723778bb8837ecb799
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
tests/doctests/test_PristineTar.py

index 9e8f633602b9a0feaf4d666ec25601b88a1a7606..3548eb84eae0b28afe765ae41fa483ca704565c7 100644 (file)
@@ -117,38 +117,6 @@ def test_pristine_tar_commit_with_sig():
     """
 
 
-def test_pristine_has_commit():
-    """
-    Find delta on the pristine tar branch
-
-    Methods tested:
-         - L{gbp.deb.pristinetar.DebianPristineTar.has_commit}
-         - L{gbp.pkg.pristinetar.PristineTar.get_commit}
-
-    >>> import gbp.deb.git
-    >>> repo = gbp.deb.git.DebianGitRepository(dirs['repo'])
-    >>> repo.pristine_tar.has_commit('upstream', '1.0', 'bzip2')
-    False
-    >>> repo.pristine_tar.has_commit('upstream', '1.0', 'gzip')
-    True
-    >>> repo.pristine_tar.has_commit('upstream', '1.0')
-    True
-    >>> branch = repo.rev_parse('pristine-tar')
-    >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz')
-    >>> branch == commit
-    True
-    >>> sig
-    True
-    >>> repo.pristine_tar.commit('../upstream_1.0.orig.tar.gz', 'upstream')
-    >>> branch = repo.rev_parse('pristine-tar')
-    >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz')
-    >>> branch == commit
-    True
-    >>> sig
-    False
-    """
-
-
 def test_pristine_tar_checkout():
     """
     Checkout a tarball using pristine-tar