diff --git a/integration_tests/suite/base/test_user_callerid.py b/integration_tests/suite/base/test_user_callerid.py index 91857e336..d56a5b09f 100644 --- a/integration_tests/suite/base/test_user_callerid.py +++ b/integration_tests/suite/base/test_user_callerid.py @@ -76,26 +76,23 @@ def test_list_with_shared(phone_number, user): @fixtures.phone_number(main=True, number='5555551234') @fixtures.phone_number(shared=True, number='5555551235') +@fixtures.phone_number(shared=True, number='5555551236') @fixtures.extension(exten='5555551235', context=INCALL_CONTEXT) @fixtures.incall() -@fixtures.extension(exten='5555556789', context=INCALL_CONTEXT) -@fixtures.incall() @fixtures.user() def test_list_with_all_type( - main_number, shared_number, extension, incall, extension2, incall2, user + main_number, shared_number1, shared_number2, extension, incall, user ): destination = {'type': 'user', 'user_id': user['id']} confd.incalls(incall['id']).put(destination=destination).assert_updated() - confd.incalls(incall2['id']).put(destination=destination).assert_updated() with a.incall_extension(incall, extension): - with a.incall_extension(incall2, extension2): - response = confd.users(user['uuid']).callerids.outgoing.get() + response = confd.users(user['uuid']).callerids.outgoing.get() expected = [ {'type': 'main', 'number': '5555551234'}, - {'type': 'shared', 'number': '5555551235'}, - {'type': 'associated', 'number': '5555556789'}, + {'type': 'associated', 'number': '5555551235'}, + {'type': 'shared', 'number': '5555551236'}, {'type': 'anonymous'}, ] assert_that(response.items, contains_inanyorder(*expected))