Skip to content
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

Add unit tests and bug fixes for scm.py #713

Merged
merged 7 commits into from
Jul 17, 2019

Conversation

JayjeetAtGithub
Copy link
Collaborator

Unit test for scm.py module and other fixes.

@JayjeetAtGithub
Copy link
Collaborator Author

@ivotron Can we make the default version returned from scm.parse as master instead of None ?

@ivotron
Copy link
Collaborator

ivotron commented Jul 16, 2019

git repos have a default branch that is pointed to by refs/remotes/origin/HEAD, so we could get that when no revision is given

Copy link
Collaborator

@ivotron ivotron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @JayjeetAtGithub, this is looking great, I'm so glad we'll finally have proper unit tests. All looks good, only thing would be that we can turn off any logging from the popper commands when running unit tests. In this way we keep unittest's output clean

cli/test/test_scm.py Outdated Show resolved Hide resolved
@pep8speaks
Copy link

pep8speaks commented Jul 17, 2019

Hello @JayjeetAtGithub! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-07-17 05:59:46 UTC

@ivotron ivotron merged commit f7eeb0e into getpopper:master Jul 17, 2019
@ivotron
Copy link
Collaborator

ivotron commented Jul 17, 2019

thanks @JayjeetAtGithub !

ivotron pushed a commit that referenced this pull request Jul 23, 2019
Fixes bug on scm.py that resulted in an action version not being properly checked out
ivotron pushed a commit that referenced this pull request May 24, 2020
Fixes bug on scm.py that resulted in an action version not being properly checked out
ivotron pushed a commit that referenced this pull request May 25, 2020
Fixes bug on scm.py that resulted in an action version not being properly checked out
ivotron pushed a commit that referenced this pull request May 25, 2020
Fixes bug on scm.py that resulted in an action version not being properly checked out
ivotron pushed a commit that referenced this pull request May 25, 2020
Fixes bug on scm.py that resulted in an action version not being properly checked out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants