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

Add more tests #6

Merged
merged 109 commits into from
Jan 25, 2024
Merged

Add more tests #6

merged 109 commits into from
Jan 25, 2024

Conversation

tbrlpld
Copy link
Owner

@tbrlpld tbrlpld commented Dec 11, 2023

This PR adds a lot of new test and refactors previously existing tests so that each test is more focused.

Test are added for different scenarios:

  • the basic Component class,
  • targeted subclasses of the Component class to test features not testable with the basic Component class (e.g. rendering of a real template),
  • the MediaContainer class,
  • usages of the component template tag,
  • example use cases of components - these somewhat duplicate some of the previous tests but are closer to what I would imagine the use cases of components to look like.

It also adds configuration set up to make use the CodeCov.io platform.

I usually find it easier to reason about modules and classes when the
higher level code it at the top. I also think it's nice when the order
somewhat follows the control flow.
The implementation has a special case for some reason.
@tbrlpld tbrlpld changed the title Add tests Add more tests Jan 1, 2024
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
@tbrlpld tbrlpld self-assigned this Jan 5, 2024
@tbrlpld tbrlpld requested a review from gasman January 5, 2024 03:18
@tbrlpld tbrlpld marked this pull request as ready for review January 5, 2024 03:18
@tbrlpld tbrlpld merged commit fe8a7ec into main Jan 25, 2024
7 checks passed
@tbrlpld tbrlpld deleted the add-tests branch January 25, 2024 04:32
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