Closed zihanltesla closed 5 months ago
Hi! I think "fakeit" can better discribe the feature of the intend here:
def fixit(name, func=None, value=None): assert name in globals() fake = Fake(func, value) globals()[name] = fake return fake
In my understanding we want exactly to replace the original function in the global environment to a fake object? Thanks!
Hi! I think "fakeit" can better discribe the feature of the intend here:
In my understanding we want exactly to replace the original function in the global environment to a fake object? Thanks!