Skip to content

Commit

Permalink
fix: Landscape membership count visible for anonymous users
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Nov 1, 2023
1 parent 2f6d852 commit 60ae822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraso_backend/tests/graphql/test_landscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def test_landscapes_query_with_membership_for_anonymous_user(
membership_list = json_response["data"]["landscapes"]["edges"][0]["node"]["membershipList"]
memberships = membership_list["memberships"]["edges"]
assert len(memberships) == 0
assert membership_list["membershipsCount"] == 0
assert membership_list["membershipsCount"] == 2


def test_landscapes_query_by_membership_email(client_query, landscape_user_memberships):
Expand Down

0 comments on commit 60ae822

Please sign in to comment.