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

Tests without internet #3

Open
jayvdb opened this issue Mar 25, 2021 · 0 comments
Open

Tests without internet #3

jayvdb opened this issue Mar 25, 2021 · 0 comments

Comments

@jayvdb
Copy link

jayvdb commented Mar 25, 2021

Would it be possible for the tests which require network to be marked with an identifier like 'network' so that they can be skipped easily.

Currently I am running the tests on an rpm build worker as

%pytest -v -k 'not (test_has_license or test_has_no_misc_files or test_has_executable or test_is_valid or (TestIntegrationHelloWorld and test_run))'

c.f. WIP https://build.opensuse.org/package/view_file/home:jayvdb:py-new/python-cnab/python-cnab.spec

It would also be nice if the PyPI sdist included the test fixtures, but given the relative simplicity of them it might be better for them to be created dynamically by conftest.py

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

No branches or pull requests

1 participant