Testing with pytest: assert, parametrize and Boundary Cases
Lessons in this course
- Classes & Objects: Model Products with __init__ and MethodsFree
- Class vs Instance Attributes: Shared Defaults and Shadowing Locked
- Properties: Validated Attributes with @property and Setters Locked
- Inheritance & super(): Extend Products without Copying Code Locked
- Polymorphism & MRO: One Call, Many Shipping Classes Locked
- Dunder Methods I: __repr__, __eq__, __lt__ and Sorting Objects Locked
- Dunder Methods II: Make a Cart Behave Like a List Locked
- Operator Overloading: A Money Class with +, * and Exact Cents Locked
- Dataclasses: Less Boilerplate, Ordering and __post_init__ Locked
- Modules: Import Once, Names, Bindings and reload() Locked
- Packages: __init__.py, Relative Imports and Import Cost Locked
- List Comprehensions: Map, Filter and Conditional Expressions Locked
- Dict & Set Comprehensions: Group, Deduplicate, Last-Wins Locked
- Built-ins with key=, Generators and next(): Idiomatic Searching Locked
- Exceptions: try, except, else, finally and Control Flow Locked
- Custom Exceptions: Hierarchies, raise and Handler Order Locked
- Regular Expressions I: Anchors, Classes and Quantifiers Locked
- Regular Expressions II: Groups, findall and Tuples Locked
- Testing with pytest: assert, parametrize and Boundary Cases Locked
- pytest Fixtures, Scopes and Coverage Locked
- Capstone: A Tested Checkout with Classes, Exceptions and Exact Cents Locked