From 01e2049cfaf98018654549d674fee3ce86cbdadc Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 16 Aug 2013 12:20:54 +0300 Subject: Read auth from environment in tests --- tests/test_gsxws.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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() -- cgit v1.2.3