Fix test failures in tests/integration/test_source_git.py
@@ -52,7 +52,10 @@ def test_basic_local_update_without_patching(
mock_spec_download_remote_s(distgit)
api_instance_source_git.sync_release(
- dist_git_branch="master", version="0.1.0", upstream_ref="0.1.0"
+ dist_git_branch="master",
+ version="0.1.0",
+ use_local_content=True,
+ upstream_ref="0.1.0",
)
assert (distgit / TARBALL_NAME).is_file()
@@ -72,7 +75,10 @@ def test_basic_local_update_empty_patch(
distgit, _ = distgit_and_remote
mock_spec_download_remote_s(distgit)
api_instance_source_git.sync_release(
- dist_git_branch="master", version="0.1.0", upstream_ref=ref
+ dist_git_branch="master",
+ version="0.1.0",
+ use_local_content=True,
+ upstream_ref=ref,
)
assert (distgit / TARBALL_NAME).is_file()
@@ -111,7 +117,10 @@ def test_basic_local_update_patch_content(
git_add_and_commit(directory=sourcegit, message="make a file sad")
api_instance_source_git.sync_release(
- dist_git_branch="master", version="0.1.0", upstream_ref="0.1.0"
+ dist_git_branch="master",
+ version="0.1.0",
+ use_local_content=True,
+ upstream_ref="0.1.0",
)
git_diff = subprocess.check_output(
@@ -277,7 +286,10 @@ def test_basic_local_update_patch_content_with_metadata(
git_add_and_commit(directory=sourcegit, message="make a file sad")
api_instance_source_git.sync_release(
- dist_git_branch="master", version="0.1.0", upstream_ref="0.1.0"
+ dist_git_branch="master",
+ version="0.1.0",
+ use_local_content=True,
+ upstream_ref="0.1.0",
)
git_diff = subprocess.check_output(
@@ -332,7 +344,10 @@ def test_basic_local_update_patch_content_with_metadata_and_patch_ignored(
git_add_and_commit(directory=sourcegit, message="make a file sad")
api_instance_source_git.sync_release(
- dist_git_branch="master", version="0.1.0", upstream_ref="0.1.0"
+ dist_git_branch="master",
+ version="0.1.0",
+ use_local_content=True,
+ upstream_ref="0.1.0",
)
git_diff = subprocess.check_output(
@@ -375,7 +390,10 @@ def test_basic_local_update_patch_content_with_downstream_patch(
git_add_and_commit(directory=sourcegit, message="make a file sad")
api_instance_source_git.sync_release(
- dist_git_branch="master", version="0.1.0", upstream_ref="0.1.0"
+ dist_git_branch="master",
+ version="0.1.0",
+ use_local_content=True,
+ upstream_ref="0.1.0",
)
git_diff = subprocess.check_output(
