Mocking a library in unittest (in Python 3.7)

前端 未结 0 1578
猫巷女王i
猫巷女王i 2021-02-11 08:00

I have a class that uses elasticsearch, and I\'m trying to write unit tests for it.

class MyClass:
    def __init__(self):
        # ...
        self.client = Ela         


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