Skip to content

Commit

Permalink
mock moduel
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Nicholls committed Apr 16, 2019
1 parent 33f8db8 commit d27fe39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import os
import sys
import types
from mock import MagicMock

# -- Path setup --------------------------------------------------------------
Expand All @@ -27,7 +28,8 @@ class DataSource(object):
import pytac
pytac.exceptions.FieldException = Exception
pytac.exceptions.HandleException = Exception
pytac.data_sources.DataSource = DataSource
sys.modules['pytac.data_source'] = types.ModuleType('data_source')
pytac.data_source.DataSource = DataSource

class Mock(MagicMock):
@classmethod
Expand Down

0 comments on commit d27fe39

Please sign in to comment.