Skip to content

Commit

Permalink
Removing test flag
Browse files Browse the repository at this point in the history
  • Loading branch information
onekiloparsec committed Jan 11, 2020
1 parent 1e28cb6 commit 5b7b171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arcsecond/api/endpoints/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, state=None, prefix=''):
self.organisation = state.organisation or ''

def _get_base_url(self):
return ARCSECOND_API_URL_DEV if (self.state.debug or self.state.test) else ARCSECOND_API_URL_PROD
return ARCSECOND_API_URL_DEV if self.state.debug else ARCSECOND_API_URL_PROD

def _root_url(self):
prefix = self.prefix
Expand All @@ -44,7 +44,7 @@ def _build_url(self, *args):

def _root_open_url(self):
if hasattr(self.state, 'open'):
return ARCSECOND_WWW_URL_DEV if (self.state.debug or self.state.test) is True else ARCSECOND_WWW_URL_PROD
return ARCSECOND_WWW_URL_DEV if self.state.debug is True else ARCSECOND_WWW_URL_PROD

def _list_url(self, name=''):
raise Exception('You must override this method.')
Expand Down

0 comments on commit 5b7b171

Please sign in to comment.