aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-08-16 12:20:54 +0300
committerFilipp Lepalaan <f@230.to>2013-08-16 12:20:54 +0300
commit01e2049cfaf98018654549d674fee3ce86cbdadc (patch)
treeafe90564553b4920643a5192566e718b43e9251a /tests/test_gsxws.py
parent6f651c1ee20b0f8b418a0d597e91ad197084184f (diff)
downloadpy-gsxws-01e2049cfaf98018654549d674fee3ce86cbdadc.tar.gz
py-gsxws-01e2049cfaf98018654549d674fee3ce86cbdadc.tar.bz2
py-gsxws-01e2049cfaf98018654549d674fee3ce86cbdadc.zip
Read auth from environment in tests
Diffstat (limited to 'tests/test_gsxws.py')
-rw-r--r--tests/test_gsxws.py6
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()