diff options
author | Filipp Lepalaan <f@230.to> | 2013-08-16 12:20:54 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-08-16 12:20:54 +0300 |
commit | 01e2049cfaf98018654549d674fee3ce86cbdadc (patch) | |
tree | afe90564553b4920643a5192566e718b43e9251a /tests | |
parent | 6f651c1ee20b0f8b418a0d597e91ad197084184f (diff) | |
download | py-gsxws-01e2049cfaf98018654549d674fee3ce86cbdadc.tar.gz py-gsxws-01e2049cfaf98018654549d674fee3ce86cbdadc.tar.bz2 py-gsxws-01e2049cfaf98018654549d674fee3ce86cbdadc.zip |
Read auth from environment in tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gsxws.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py index efc830e..2596f52 100644 --- a/tests/test_gsxws.py +++ b/tests/test_gsxws.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- +import os import logging from datetime import date from unittest import main, skip, TestCase @@ -12,9 +13,10 @@ class TestEscalationFunctions(TestCase): def setUp(self): from gsxws.core import connect logging.basicConfig(level=logging.DEBUG) - connect('', '', '', 'it') + env = os.environ + connect(env['GSX_USER'], env['GSX_PASSWORD'], env['GSX_SOLDTO'], env['GSX_ENV']) esc = escalations.Escalation() - esc.shipTo = '' + esc.shipTo = env['GSX_SHIPTO'] esc.issueTypeCode = 'WS' esc.notes = 'This is a test' self.escalation = esc.create() |