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

refactor(smoke): use pytest.raises instead of custom solution #12333

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Jan 13, 2025

Makes our tests clearer, and ensures that we're throwing the right types of exceptions. except Exception is very risky and often will catch things you didn't want to suppress.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Makes our tests clearer, and ensures that we're throwing the right types
of exceptions. `except Exception` is very risky and often will catch
things you didn't want to suppress.
@github-actions github-actions bot added the smoke_test Contains changes related to smoke tests label Jan 13, 2025
Copy link

codecov bot commented Jan 13, 2025

❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Jan 13, 2025
@datahub-cyborg datahub-cyborg bot added pending-submitter-merge and removed needs-review Label for PRs that need review from a maintainer. labels Jan 21, 2025
@hsheth2
Copy link
Collaborator Author

hsheth2 commented Jan 21, 2025

This PR only impacts smoke tests, not cypress tests. Merging through CI failures.

@hsheth2 hsheth2 merged commit 1f4e140 into master Jan 21, 2025
89 of 93 checks passed
@hsheth2 hsheth2 deleted the structured-props-smoke-test branch January 21, 2025 17:19
hsheth2 added a commit that referenced this pull request Jan 21, 2025
@hsheth2 hsheth2 mentioned this pull request Jan 21, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-submitter-merge smoke_test Contains changes related to smoke tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants