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

Convert --version tests to pytest #5026

Merged
merged 5 commits into from
Apr 11, 2022
Merged

Convert --version tests to pytest #5026

merged 5 commits into from
Apr 11, 2022

Conversation

stu-k
Copy link
Contributor

@stu-k stu-k commented Apr 11, 2022

resolves #5024

Description

Converted old --version unit tests to pytest

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have added information about my change to be included in the CHANGELOG.

@stu-k stu-k requested a review from a team April 11, 2022 14:04
@stu-k stu-k requested a review from a team as a code owner April 11, 2022 14:04
@stu-k stu-k requested a review from iknox-fa April 11, 2022 14:04
@cla-bot cla-bot bot added the cla:yes label Apr 11, 2022
@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@@ -0,0 +1,630 @@
import pytest
Copy link
Contributor Author

@stu-k stu-k Apr 11, 2022

Choose a reason for hiding this comment

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

I placed this file under tests/unit/basic, since it's only explicitly testing the get_version_information function from version.py. There were no existing unit tests, so I'm not sure what the structure here should be.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good question. The old unit tests were all in one directory, and we don't have such a large number that it was much of an issue. So I'd be inclined to do the same for the converted tests, i.e. not put them in subdirectories of 'unit'. It feels like separating them out into subdirectories would just make them harder to find.

@stu-k stu-k requested review from ChenyuLInx and gshank and removed request for a team April 11, 2022 14:08
Copy link
Contributor

@gshank gshank left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -0,0 +1,630 @@
import pytest
Copy link
Contributor

Choose a reason for hiding this comment

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

Good question. The old unit tests were all in one directory, and we don't have such a large number that it was much of an issue. So I'd be inclined to do the same for the converted tests, i.e. not put them in subdirectories of 'unit'. It feels like separating them out into subdirectories would just make them harder to find.

@stu-k stu-k requested a review from gshank April 11, 2022 16:03
@stu-k stu-k merged commit c1dfb4e into main Apr 11, 2022
@stu-k stu-k deleted the stu/convert-version-tests branch April 11, 2022 16:04
VersusFacit pushed a commit that referenced this pull request Apr 14, 2022
Convert --version tests to pytest
agoblet pushed a commit to BigDataRepublic/dbt-core that referenced this pull request May 20, 2022
Convert --version tests to pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-474] Convert version tests to pytest
2 participants