Skip to content

Commit

Permalink
Set the remote test URL with an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ylep committed Sep 30, 2021
1 parent b7b5ee0 commit e44d77f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions remote_tests/test_graph_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@
# See the Licence for the specific language governing permissions and
# limitations under the Licence.

import os

import pytest
import requests


@pytest.fixture
def base_url():
# return 'https://hbp-spatial-backend.apps.hbp.eu/'
# return 'https://hbp-spatial-backend.apps-dev.hbp.eu/'
return 'http://127.0.0.1:5000/'
url = os.environ.get('HBP_SPATIAL_BACKEND_TEST_URL')
if url:
return url
else:
# return 'https://hbp-spatial-backend.apps.hbp.eu/'
# return 'https://hbp-spatial-backend.apps-dev.hbp.eu/'
return 'http://127.0.0.1:5000/'


class TransformRequester:
Expand Down

0 comments on commit e44d77f

Please sign in to comment.