Skip to content

Commit

Permalink
Try mock data source.
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Nicholls committed Apr 16, 2019
1 parent 722e0e0 commit 33f8db8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@

# If we cannot import pytac or at then mock them. This is a temporary fix
# because at is not on pypi.
class pytac_exception(Exception):
class DataSource(object):
pass

import pytac
pytac.exceptions.FieldException = pytac_exception
pytac.exceptions.HandleException = pytac_exception
pytac.exceptions.FieldException = Exception
pytac.exceptions.HandleException = Exception
pytac.data_sources.DataSource = DataSource

class Mock(MagicMock):
@classmethod
Expand Down

0 comments on commit 33f8db8

Please sign in to comment.