Mocking a library in unittest (in Python 3.7)

前端 未结 0 1326
后悔当初
后悔当初 2021-02-11 08:24

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         


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