Skip to content

Commit

Permalink
fix test_git::test_fetch integration test (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pczajka authored May 29, 2024
1 parent 7a9d15f commit e18a5a3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests_integration/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,10 @@ def test_object_commands(runner, sf_git_repository):

@pytest.mark.integration
def test_fetch(runner, sf_git_repository):
result = runner.invoke_with_connection_json(["git", "fetch", sf_git_repository])
assert result.exit_code == 0
assert result.json == [
{
"status": f"Git Repository {sf_git_repository} is up to date. No change was fetched."
}
]
result = runner.invoke_with_connection(["git", "fetch", sf_git_repository])
# we check only command's exit code, as checking its output would be flaky
# (the repository state changes often enough)
assert result.exit_code == 0, result.output


@pytest.mark.integration
Expand Down

0 comments on commit e18a5a3

Please sign in to comment.