Y
Hacker News
new
|
ask
|
show
|
jobs
by
SpaghettiCthulu
944 days ago
Uh, just assign your mock function to `<insert name here>`? Python is really the wrong language to be complaining about a lack of mockability.
1 comments
rjbwork
944 days ago
True. When you can just make any function be whatever you want whenever you want that sort of abstraction does seem a big much. I was responding to the specific question in reference to the time provider in .net 8.
link
SpaghettiCthulu
943 days ago
Ah, fair enough. C# certainly presents more of a need for that sort of abstraction, being a statically typed language.
link