Commit 729c9e39 authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_ingestion: updating unit tests

parent be176741
...@@ -10,10 +10,10 @@ from Products.ERP5Type.Log import log ...@@ -10,10 +10,10 @@ from Products.ERP5Type.Log import log
class TestDataIngestion(SecurityTestCase): class TestDataIngestion(SecurityTestCase):
PART = ".xxx" PART = "/xxx"
EOF = ".EOF" EOF = "/EOF"
FIF = ".fif" FIF = "/fif"
REF_PREFIX = "fake-supplier.fake-dataset." REF_PREFIX = "fake-supplier/fake-dataset/"
INGESTION_SCRIPT = 'HandleFifEmbulkIngestion' INGESTION_SCRIPT = 'HandleFifEmbulkIngestion'
USER = 'zope' USER = 'zope'
PASS = 'roque5' PASS = 'roque5'
...@@ -36,7 +36,7 @@ class TestDataIngestion(SecurityTestCase): ...@@ -36,7 +36,7 @@ class TestDataIngestion(SecurityTestCase):
return self.REF_PREFIX + reference + self.FIF return self.REF_PREFIX + reference + self.FIF
def sanitizeReference(self, reference): def sanitizeReference(self, reference):
return reference.replace(".", "_"), '_'.join(reference.split('.')[1:]) return reference.replace("/", "_"), '/'.join(reference.split('/')[1:])
def chunks(self, l, n): def chunks(self, l, n):
for i in xrange(0, len(l), n): for i in xrange(0, len(l), n):
......
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