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 source tests #4935

Merged
merged 9 commits into from
Mar 24, 2022
Merged

Convert source tests #4935

merged 9 commits into from
Mar 24, 2022

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Mar 23, 2022

Description

converts 042_sources_tests and 059_source_overrides_tests as part of the source config work. This PR just converts the existing tests.

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.

@emmyoop emmyoop added the Skip Changelog Skips GHA to check for changelog file label Mar 23, 2022
@emmyoop emmyoop requested a review from a team as a code owner March 23, 2022 02:09
@cla-bot cla-bot bot added the cla:yes label Mar 23, 2022
@emmyoop emmyoop requested review from ChenyuLInx and gshank and removed request for a team March 23, 2022 02:09
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 very nice!

class TestSourceOverride:
@pytest.fixture(scope="class", autouse=True)
def setUp(self, project_root, local_dependency): # noqa: F811
write_project_files(project_root, "local_dependency", local_dependency)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! I was thinking about how to do the local_dependency thing, and this works very neatly.

@pytest.fixture(scope="class")
def project_config_update(self):
return {
"config-version": 2,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit... We don't need config-version here.

Copy link
Contributor

@ChenyuLInx ChenyuLInx left a comment

Choose a reason for hiding this comment

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

This looks great!

@emmyoop emmyoop merged commit 81118d9 into main Mar 24, 2022
@emmyoop emmyoop deleted the er/convert-source-tests branch March 24, 2022 14:19
@jtcohen6 jtcohen6 mentioned this pull request Mar 26, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants