Skip to content

Commit

Permalink
Merge pull request #489 from wazo-platform/WAZO-3956-shared-if-main
Browse files Browse the repository at this point in the history
phone_numbers: check that setting a number as main also makes it shared

Depends-On: wazo-platform/xivo-dao#289

Reviewed-by: Pascal Cadotte Michaud
  • Loading branch information
wazo-community-zuul[bot] authored Nov 11, 2024
2 parents c8a4a33 + 4fee5b0 commit 5da04e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration_tests/suite/base/test_phone_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ def test_set_main_number(num1, num2):
has_entries(
uuid=num1['uuid'],
main=True,
shared=True,
),
)

Expand All @@ -499,6 +500,7 @@ def test_replace_main_number(num1, num2):
has_entries(
uuid=num1['uuid'],
main=True,
shared=True,
),
)

Expand All @@ -516,6 +518,7 @@ def test_replace_main_number(num1, num2):
has_entries(
uuid=num2['uuid'],
main=True,
shared=True,
),
)

Expand Down

0 comments on commit 5da04e5

Please sign in to comment.