BTHLABS-56: _Copy share link_ button in view association page

Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl>
Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
2025-09-15 06:28:38 +00:00
committed by Tomek Wójcik
parent ab84f685c0
commit d1e60babf4
7 changed files with 113 additions and 11 deletions

View File

@@ -27,6 +27,14 @@ def test_authenticated_ok(authenticated_client: Client,
assert hasattr(result.context['association'], 'target') is True
assert result.context['association'].target.pk == association_out.target.pk
assert result.context['show_controls'] is True
assert 'share_url' in result.context
expected_share_url = reverse(
'ui.associations.view',
args=(association_out.pk,),
query=[('share', 'true')],
)
assert result.context['share_url'] == expected_share_url
@pytest.mark.django_db