-
Notifications
You must be signed in to change notification settings - Fork 709
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
Create a minimalist reproduction of content directory for unit tests #12819
Create a minimalist reproduction of content directory for unit tests #12819
Conversation
It's a great idea 👍 |
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.
I have played with the test test_profiles.py, I have add there more asserts to verify that it really uses the data in the data/content_dir
directory. I think that the data are a good basis for many unit tests.
Failed CI tests for Fedora latest are workarounded by #12821 |
Just removed long text from files in order to make them easier to be read. Also some minor updates regarding indentation. Signed-off-by: Marcus Burghardt <[email protected]>
Signed-off-by: Marcus Burghardt <[email protected]>
Signed-off-by: Marcus Burghardt <[email protected]>
f451e48
to
8811f13
Compare
I just rebased after #12821 |
Code Climate has analyzed commit 8811f13 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 61.8% (0.0% change). View more on Code Climate. |
Description:
With the introduction of #12797, during the development of unit tests it was not simple to mock all necessary information in runtime. The existing directory structure in
ssg-module/data
was not sufficient as well and I would like to avoid duplicating much data so it was temporarily used real content for unit tests, which is not ideal.In a discussion with @vojtapolasek , he proposed a minimalist reproduction of content directory including the necessary files for unit tests and this PR is just some minor improvements and cleanup on top of it.
More context in #12797 (comment)
Rationale:
Review Hints: