Skip to content
Snippets Groups Projects
Commit 7537dcbe authored by Robert Latta's avatar Robert Latta
Browse files

removed 'Organisation imported as a user' text

parent ff7ddc87
No related branches found
No related tags found
No related merge requests found
......@@ -176,9 +176,6 @@ def otrs_get_customer_contacts(ds):
})
if not _is_valid_customer(t_customer_user):
continue
if contact['Contact']['IsGroup']:
t_customer_user['comments'] = \
'Organisation imported as a user'
yield t_customer_user
......@@ -241,7 +238,7 @@ def otrs_get_customer_users_rows(ds):
previous_email = cu['email']
if duplicate_emails:
logger.error('Duplicate emails found in OTRS customer-user export: '
f'{duplicate_emails}')
f'{duplicate_emails}')
# raise KeyError('Duplicate emails found in OTRS customer-user export: ' # noqa
# f'{duplicate_emails}')
......
......@@ -158,12 +158,12 @@ def test_otrs_get_customer_users(mocker):
assert customer_users[1] == [
'BANOC@DUMMY2.COM', 'BANOC@DUMMY2.COM', 'DUMMY2', '', '',
'DUMMY 2 NOC', '-', '', '', '',
'', '', '', '', 'Organisation imported as a user'
'', '', '', '', ''
]
assert customer_users[6] == [
'HNOC@DUMMY8.COM', 'HNOC@DUMMY8.COM', 'DUMMY8', 'OTRS-GEANT-NREN', '',
'H D_FIRST', 'H D_INFIX H D_LAST', '', '', '',
'', '', '', '', 'Organisation imported as a user'
'', '', '', '', ''
]
assert customer_users[10] == [
'K@DUMMY10.FR', 'K@DUMMY10.FR', 'DUMMY10', '', '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment