-
Stop Using datetime.now! (With Dependency Injection)
Stop Using datetime.now! (With Dependency Injection) How do you test a function that relies on datetime.now() or date.today()? You could use libraries like FreezeGun or libfaketime, but not every project can afford the luxury of reaching for third-party solutions. Learn how dependency injection can help you write code that is more testable, maintainable, and practical. HAKI BENITA
Appears in lists (1)
More like this (3)
-
Python Dependency Injection
Python Dependency Injection Learn how to use dependency injection to write loosely-coupled yet highly-cohesive code. JAN...
-
Typed functional Dependency Injection in Python
Typed Functional Dependency Injection in Python “Dependency injection is a controversial topic. There are known problems,...
-
Dependency Injection in Python with Pinject
Dependency Injection in Python With Pinject Learn the basic principles of Dependency Injection and how to...