Skip to content

Commit

Permalink
WIP: More test reverts.. TODO: understand 'class DebianGitTestRepo'
Browse files Browse the repository at this point in the history
  • Loading branch information
ottok committed Jan 5, 2024
1 parent c9de4c4 commit ec5d8b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/13_test_gbp_pq.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _test_generate_patches(self, changes, expected_patches, opts):
for expected in expected_paths:
self.repo.apply_patch(expected)
self.repo.commit_all("foo")
diff = self.repo.diff('debian/latest', 'testapply')
diff = self.repo.diff('master', 'testapply')
# Branches must be identical afterwards
self.assertEqual(b'', diff)

Expand Down
2 changes: 1 addition & 1 deletion tests/22_test_gbp_buildpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_get_pbuilder_dist_dep14_debian_sid(self, patch):

@patch('gbp.deb.get_vendor', return_value='Debian')
def test_get_pbuilder_dist_dep14_debian_master(self, patch):
branch = 'debian/debian/latest'
branch = 'debian/latest'
self.repo.create_branch(branch)
self.repo.set_branch(branch)
self.assertEqual(get_pbuilder_dist(self.options, self.repo), '')
Expand Down
2 changes: 1 addition & 1 deletion tests/24_test_gbp_import_orig.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def testDebianDir(self):
self.repo.set_branch("upstream")
self.add_file("upstream_file")
self.add_file("debian/changelog")
self.repo.set_branch("debian/latest")
self.repo.set_branch("master")
self.repo.create_tag('upstream/1.0', "Upstream 1.0", "upstream")
debian_branch_merge_by_replace(self.repo, "upstream/1.0", "1.0", self)
self.assertTrue(os.path.exists("debian/control"))
Expand Down

0 comments on commit ec5d8b3

Please sign in to comment.