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

Mark tests as requiring Internet #120

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Conversation

stefanor
Copy link
Contributor

So that we can self-contained tests, when offline.

The use-case here is packaging truststore in Debian. We like to run tests during our package builds, where possible. These build environments don't permit Internet access.
We do have CI test environments that can access the Internet, but those happen after build. We'd run the full test suite there (inclnuding mkcert, which messes with the system certificate store).

I see that the vast majority of the tests require Internet access, so I understand if you're not interested in this patch, because you aren't expecting much low-level test coverage.

sethmlarson
sethmlarson previously approved these changes Oct 18, 2023
Copy link
Owner

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

Sounds good, thanks for contributing this and for repackaging Truststore into Debian.

@sethmlarson
Copy link
Owner

sethmlarson commented Oct 18, 2023

@stefanor Could you run nox -s format and push the results?

So that we can self-contained tests, when offline.

The use-case here is packaging truststore in Debian.
We like to run tests during our package builds, where possible. These
build environments don't permit Internet access.
We do have CI test environments that can access the Internet, but those
happen after build. We'd run the full test suite there (inclnuding
mkcert, which messes with the system certificate store).

I see that the vast majority of the tests require Internet access, so I
understand if you're not interested in this patch, because you aren't
expecting much low-level test coverage.
@stefanor
Copy link
Contributor Author

thanks for contributing this and for repackaging Truststore into Debian.

No problem. You're a new (vendored) dependency of pip. So I want to have truststore packaged in the archive.

@sethmlarson sethmlarson merged commit bc81d52 into sethmlarson:main Oct 18, 2023
15 checks passed
@stefanor stefanor deleted the tag-tests branch October 19, 2023 10:40
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.

2 participants