Skip to content
Snippets Groups Projects
Verified Commit dc8469ae authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

test: add test to create a profile with links

parent f6d5493e
No related branches found
No related tags found
No related merge requests found
Pipeline #8744 passed
Pipeline: aura-tests

#8745

    ......@@ -16,6 +16,7 @@ def profile_data(image=None, link_type: LinkType = None) -> dict[str, str | int]
    "biography": "BIOGRAPHY",
    "email": "host@aura.radio",
    "name": "NAME",
    "owner_ids": [1],
    }
    if image:
    ......@@ -37,6 +38,16 @@ def test_create_profile(admin_api_client):
    assert_data(response, data)
    def test_create_profile_with_links(admin_api_client, link_type):
    data = profile_data(link_type=link_type)
    response = admin_api_client.post(url(), data=data, format="json")
    assert response.status_code == 201
    assert_data(response, data)
    def test_create_profile_forbidden_for_common_user(common_api_client1):
    data = profile_data()
    ......
    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