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

Unit tests #133

Merged
merged 3 commits into from
Jul 25, 2022
Merged

Unit tests #133

merged 3 commits into from
Jul 25, 2022

Conversation

dbeatty10
Copy link
Contributor

Resolves #131, resolves #132, related to #67, supports #130

Overview

  • Simple test cases for validating package versions specified in git tags
  • Brief instructions for installing dependencies and running test cases
  • We will need to change the test cases slightly if Make hyphen optional for prerelease suffix #130 is merged

Implementation details

Used pytest as the testing framework.

There was a naming conflict between the local hubcap/cmd.py module and the git/cmd.py module within the gitpython package. So I renamed the former.

Used these test cases (linked from the SemVer docs). Added a couple test cases we've seen for dbt adapters and packages.

Copy link
Contributor

@joellabes joellabes left a comment

Choose a reason for hiding this comment

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

in the most literal way possible, this looks good to me!

$EDITOR config.json

# Export the JSON credentials into an environment variable
export CONFIG=$(<config.json)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm unfamiliar with this syntax, so just checking that the lonely < is meant to be there?

Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

looks fantastic!

Comment on lines +98 to +100
"0.8.0a1",
"0.8.0b2",
"0.8.0rc3",
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

#130 will move these up to the "supported" category

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.

Contributing instructions Testing framework
3 participants