remove invalid srpm tests: upstream-ref implies source-git
@@ -38,44 +38,3 @@ def test_srpm_custom_path(upstream_instance):
custom_path = "sooooorc.rpm"
call_real_packit(parameters=["--debug", "srpm", "--output", custom_path], cwd=u)
assert u.joinpath(custom_path).is_file()
-
-
-def test_srpm_upstream_ref_head(upstream_instance):
- u, ups = upstream_instance
- custom_ref = "HEAD"
- call_real_packit(
- parameters=["--debug", "srpm", "--upstream-ref", custom_ref], cwd=u
- )
- assert list(u.glob("*.src.rpm"))[0].exists()
-
-
-def test_srpm_upstream_ref(upstream_instance_with_two_commits):
- u, ups = upstream_instance_with_two_commits
-
- custom_ref = "HEAD~"
- call_real_packit(
- parameters=["--debug", "srpm", "--upstream-ref", custom_ref], cwd=u
- )
- assert list(u.glob("*.src.rpm"))[0].exists()
-
-
-def test_srpm_upstream_ref_commit(upstream_instance_with_two_commits):
- u, ups = upstream_instance_with_two_commits
-
- custom_ref = ups.local_project.git_repo.commit("HEAD~").hexsha
- call_real_packit(
- parameters=["--debug", "srpm", "--upstream-ref", custom_ref], cwd=u
- )
- assert list(u.glob("*.src.rpm"))[0].exists()
-
-
-def test_srpm_upstream_ref_branch(upstream_instance_with_two_commits):
- custom_ref = "new_branch"
-
- u, ups = upstream_instance_with_two_commits
- ups.local_project.git_repo.create_head(custom_ref)
-
- call_real_packit(
- parameters=["--debug", "srpm", "--upstream-ref", custom_ref], cwd=u
- )
- assert list(u.glob("*.src.rpm"))[0].exists()
