I'd like to make sure that datetime.datetime.now()
returns a specific datetime for testing purposes, How do I do this? I've tried with pytest's monkeypatch
monkeypatch.setattr(datetime.datetime,"now", nowfunc)
But this gives me the error TypeError: can't set attributes of built-in/extension type 'datetime.datetime'