aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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()