Skip to content

Commit

Permalink
Merged PR 11: pass host/key as env to test and change the test format
Browse files Browse the repository at this point in the history
pass host/key as env to test and change the test format
  • Loading branch information
Mohammad Derakhshani committed Nov 8, 2017
1 parent 7724f65 commit 581fc28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 9 additions & 2 deletions test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#SOFTWARE.

import os
try:
import urllib3
urllib3.disable_warnings()
except:
print("no urllib3")

class _test_config(object):

host = '[YOUR_ENDPOINT_HERE]'
masterKey = '[YOUR_KEY_HERE]'
host = os.getenv('ACCOUNT_HOST', 'https://localhost:443')
masterKey = os.getenv('ACCOUNT_KEY', 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==')

global_host = '[YOUR_GLOBAL_ENDPOINT_HERE]'
write_location_host = '[YOUR_WRITE_ENDPOINT_HERE]'
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ python_files=test/**.py
deps = {[base]deps}
changedir = {envtmpdir}
commands =
pytest --verbose {toxinidir}/test/ {posargs}
pytest \
--junitxml={envlogdir}/Test-junit-{envname}.xml \
--verbose {toxinidir}/test/ {posargs}

0 comments on commit 581fc28

Please sign in to comment.