Glossary: Software Design Patterns
Injected clock
Also written: clock
A function with no arguments that returns the current time, passed into code so a test can pass a fixed one. You pass `datetime.now` without brackets.
Glossary: Software Design Patterns
Also written: clock
A function with no arguments that returns the current time, passed into code so a test can pass a fixed one. You pass `datetime.now` without brackets.