BTHLABS-94: Pass is_netloc_banned from save to share extension

This commit is contained in:
2026-07-21 08:20:43 +02:00
parent 9565a71bc8
commit d90504eed9
15 changed files with 124 additions and 34 deletions

View File

@@ -60,6 +60,7 @@ def test_ok(authenticated_client: Client,
assert call_result['result']['url'].endswith(reverse(
'ui.associations.view', args=(association_pk,),
))
assert call_result['result']['is_netloc_banned'] is False
AssociationsTestingService().assert_created(
pk=association_pk,
@@ -105,6 +106,8 @@ def test_ok_netloc_banned(authenticated_client: Client,
save_pk = uuid.UUID(call_result['result']['target_uuid'])
assert call_result['result']['is_netloc_banned'] is True
SavesTestingService().assert_created(
pk=save_pk,
account_uuid=account.pk,