Should i use a dummy constant or the actual expected type for return value of mock objects

前端 未结 0 1642
借酒劲吻你
借酒劲吻你 2020-12-30 04:28

Let\'s say I have this module car.py

class Car():
  pass

def get_car():
  return Car()

And I want to write a simple unittest: test_car.py

相关标签:
回答
  • 消灭零回复
提交回复
热议问题