ably-python icon indicating copy to clipboard operation
ably-python copied to clipboard

tests: use environment instead of host

Open jdavid opened this issue 7 years ago • 0 comments

Comes from #120

Suggested pseudo code by paddybyers

environment = os.environ.get('ABLY_ENV', 'sandbox')
host = (environment == 'production) ? 'rest.ably.io' : environment + '_rest.ably.io'
port = (environment == 'local') ? 8080 : 80
tls_port = (environment == 'local') ? 8081 : 443

In test/ably/restsetup.py

┆Issue is synchronized with this Jira Task by Unito

jdavid avatar Aug 03 '18 16:08 jdavid