Skip to content

Commit

Permalink
Different mock method.
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Nicholls committed Apr 16, 2019
1 parent d27fe39 commit 4e0832e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DataSource(object):
import pytac
pytac.exceptions.FieldException = Exception
pytac.exceptions.HandleException = Exception
sys.modules['pytac.data_source'] = types.ModuleType('data_source')
pytac.__dict__['data_source'] = types.ModuleType('data_source')
pytac.data_source.DataSource = DataSource

class Mock(MagicMock):
Expand Down

0 comments on commit 4e0832e

Please sign in to comment.