forked from M-Labs/artiq
Fix Mock usage in sphinx configuration.
This commit is contained in:
parent
95f7be0a88
commit
163edc02c6
|
@ -22,7 +22,9 @@ from unittest.mock import MagicMock
|
||||||
class Mock(MagicMock):
|
class Mock(MagicMock):
|
||||||
@classmethod
|
@classmethod
|
||||||
def __getattr__(cls, name):
|
def __getattr__(cls, name):
|
||||||
return Mock()
|
if name == "_mock_methods":
|
||||||
|
return None
|
||||||
|
return Mock()
|
||||||
|
|
||||||
|
|
||||||
mock_modules = ["artiq.gui.moninj", "quamash", "pyqtgraph", "matplotlib"]
|
mock_modules = ["artiq.gui.moninj", "quamash", "pyqtgraph", "matplotlib"]
|
||||||
|
|
Loading…
Reference in New Issue