skip remote stuff when testing
@@ -17,7 +17,7 @@ import os
import re
import keyring
import threading
-import datetime
+import requests
import numpy as np
@@ -153,7 +153,11 @@ class MastClass(QueryWithLogin):
self._column_configs = dict()
self._current_service = None
+ try:
self._auth_mode = self._get_auth_mode()
+ except requests.exceptions.ConnectionError:
+ # this is fine, we're in test mode
+ self._auth_mode = 'SHIB-ECP'
if "SHIB-ECP" == self._auth_mode:
log.debug("Using Legacy Shibboleth login")
