pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/faif/python-patterns/pull/464

ps://github.githubassets.com/assets/actions-0e714a98ea09295a.css" /> Add unit tests for MVC/Facade/Flyweight/Delegation and small fixes to enable pytest collection by Binilkks · Pull Request #464 · faif/python-patterns · GitHub
Skip to content

Add unit tests for MVC/Facade/Flyweight/Delegation and small fixes to enable pytest collection#464

Merged
faif merged 1 commit intofaif:masterfrom
Binilkks:test-coverage
Feb 13, 2026
Merged

Add unit tests for MVC/Facade/Flyweight/Delegation and small fixes to enable pytest collection#464
faif merged 1 commit intofaif:masterfrom
Binilkks:test-coverage

Conversation

@Binilkks
Copy link
Copy Markdown
Contributor

Summary: Add focused unit tests for several low-coverage modules and apply two minimal source fixes so the test suite can be collected and run reliably in CI/local dev.
Why: Running pytest previously failed during collection due to a missing import and missing typing names; these prevented adding tests and measuring coverage. This PR adds tests and the smallest safe changes needed to run them.
What I changed (files):
Added tests:
test_mvc.py
test_facade.py
test_flyweight.py
test_delegation.py
pytest_local.ini (temporary local pytest config to avoid project-wide doctest addopts during targeted runs)
Small source fixes:
mvc.py — removed invalid top-level from ProductModel import Price (module did not exist; file defines its own Price class).
memento.py — added missing typing imports (Any, Type) to avoid NameError during collection.

@faif faif merged commit bc4c583 into faif:master Feb 13, 2026
3 of 9 checks passed
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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy