Commit 8eda068d authored by David Burke's avatar David Burke

Added tests that won't run on CI for private server testing

parent b52055c5
Pipeline #2581022 passed with stage
......@@ -16,3 +16,5 @@ INSTALLED_APPS = [
SECRET_KEY = 'li0$-gnv)76g$yf7p@(cg-^_q7j6df5cx$o-gsef5hd68phj!4'
import unittest
import soap
from soap import settings
from django.test import TestCase
class SOAPTest(unittest.TestCase):
......@@ -11,3 +13,21 @@ class SOAPTest(unittest.TestCase):
resp = client.service.GetInfoByZIP('10305')
self.assertEquals(resp.NewDataSet.Table.CITY, 'Staten Island')
self.assertEquals(resp.NewDataSet.Table.STATE, 'NY')
class SOAPProxyTest(TestCase):
def test_soap_with_proxy(self):
""" Set sandbox/settings to use """
if settings.PROXY_URL:
wsdl = ''
client = soap.get_client(wsdl, 'LOCATIONS')
def test_private_soap_with_proxy(self):
""" Intended for local and private use only
Set SOAP_PROXY_URL in sandbox/settings too.
private_ip = ''
if not private_ip:
wsdl = 'http://{}/TAXCCH/Service3.5.svc?singleWsdl'.format(private_ip)
client = soap.get_client(wsdl, 'CCH')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment