#209 almost there OGR API working
Try fixing/mocking for `psycopg2 elasticsearch`.
This commit is contained in:
committed by
GitHub
parent
f2cf004d2a
commit
8748c3aa2b
+1
-1
@@ -28,7 +28,7 @@ class Mock(MagicMock):
|
||||
return MagicMock()
|
||||
|
||||
|
||||
MOCK_MODULES = ['osgeo', 'psycopg2.sql', 'elasticsearch']
|
||||
MOCK_MODULES = ['osgeo', 'psycopg2', 'psycopg2.sql', 'elasticsearch', 'elasticsearch.client']
|
||||
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
|
||||
|
||||
sys.path.insert(0, os.path.abspath('../..'))
|
||||
|
||||
Reference in New Issue
Block a user