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

move tests to root directory #15

Merged
merged 1 commit into from
Jun 30, 2024
Merged

Conversation

arenevier
Copy link

Tests are included in the build, which means they are typically shipped when distributed: https://packages.ubuntu.com/focal/all/python3-blockdiag/filelist

One solution would be for the distributors to remove those files from the build. But another (better) solution would be to not include them in the first place.

This can be achieved by moving the tests outside of the application code. Doing that is actually the recommended layout from pytest:

https://docs.pytest.org/en/stable/explanation/goodpractices.html#tests-outside-application-code

This patch just move files, modify some links, and add a conftest.py file, needed to modify sys.path

Tests are included in the build, which means they are typically shipped when distributed:
https://packages.ubuntu.com/focal/all/python3-blockdiag/filelist

One solution would be for the distributors to remove those files from
the  build. But another (better) solution would be to not include them in the first place.

This can be achieved by moving the tests outside of the application
code. Doing that is actually the recommended layout from pytest:

https://docs.pytest.org/en/stable/explanation/goodpractices.html#tests-outside-application-code

This patch just move files, modify some links, and add a conftest.py
file, needed to modify sys.path
@ggrossetie ggrossetie merged commit 8686a34 into yuzutech:master Jun 30, 2024
5 checks passed
@arenevier arenevier deleted the test_layout branch June 30, 2024 17:01
arenevier added a commit to arenevier/seqdiag that referenced this pull request Jul 9, 2024
Those methods are import from blockdiag. But now that blockdiag does not
ships its test files, the tests were failing.
yuzutech/blockdiag#15
arenevier added a commit to arenevier/actdiag that referenced this pull request Jul 21, 2024
Those methods are import from blockdiag. But now that blockdiag does not
ships its test files, the tests were failing.
yuzutech/blockdiag#15
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