gvwilson / sdxpy

Software Design by Example: a tool-based introduction with Python
https://third-bit.com/sdxpy/
Other
373 stars 55 forks source link

/protocols - Section 9.1: Mock Objects (2023-10-02) - Rename `fixit` into `fakeit` #249

Open sback opened 1 year ago

sback commented 1 year ago

I am not sure the semantic meaning of the name fixit matches the semantic meaning of the function itself. Since the goal of the fixit function is to replace an existing function with a Fake, I'd find the name fakeit more appropriate to represent its actual goal.

If this change is done, the corresponding tests should also be renamed. For example, test_with_fixed_return_value should likely be renamed as test_with_fake_return_value.