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
[MAINTENANCE] Add check to CloudDataContext
to ensure using latest PyPI version
#7753
[MAINTENANCE] Add check to CloudDataContext
to ensure using latest PyPI version
#7753
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
def _get_latest_version_from_pypi(self) -> version.Version | None: | ||
response_json: _PyPIPackageData | None = None | ||
try: | ||
response = requests.get(self._PYPI_GX_ENDPOINT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth it to create a responses
fixture mock for this.
Or... adding a check here to see if the code is being run from pytest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh might ask for some help here to make sure no other tests are impacted - will probably tackle tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a great debugging/onboarding/dev QOL improvement.
I think we should add a mock or conditional check to prevent this from becoming a source of flakey test failures.
…_expectations into m/lakitu-118/warn_if_not_on_latest_version_pypi
…_expectations into m/lakitu-118/warn_if_not_on_latest_version_pypi
…ps://github.com/great-expectations/great_expectations into m/lakitu-118/warn_if_not_on_latest_version_pypi
Changes proposed in this pull request:
Definition of Done