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
class TestDataIngestion(SecurityTestCase):
PART = ".xxx"
EOF = ".EOF"
FIF = ".fif"
REF_PREFIX = "fake-supplier.fake-dataset."
PART = "/xxx"
EOF = "/EOF"
FIF = "/fif"
REF_PREFIX = "fake-supplier/fake-dataset/"
INGESTION_SCRIPT = 'HandleFifEmbulkIngestion'
USER = 'zope'
PASS = 'roque5'
......@@ -36,7 +36,7 @@ class TestDataIngestion(SecurityTestCase):
return self.REF_PREFIX + reference + self.FIF
def sanitizeReference(self, reference):
return reference.replace(".", "_"), '_'.join(reference.split('.')[1:])
return reference.replace("/", "_"), '/'.join(reference.split('/')[1:])
def chunks(self, 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