-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snow 1105629 git integration tests #865
Snow 1105629 git integration tests #865
Conversation
81ccc92
to
712b07b
Compare
result = runner.invoke_with_connection_json( | ||
["git", "list-branches", sf_git_repository] | ||
) | ||
assert result.exit_code == 0 | ||
assert "main" in _filter_key(result.json, key="name") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAve you considered using like
to reduce the json and do explicit comparison ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests_integration/test_git.py
Outdated
["object", "stage", "list", STAGE_NAME] | ||
) | ||
assert result.exit_code == 0 | ||
print([f["name"] for f in result.json]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug statement
Pre-review checklist
Changes description
Add integration tests for:
snow object git-repository *
snow git fetch
snow git list-branches
andlist-tags
snow git list-files
snow git copy