Skip to content

Commit

Permalink
Remove duplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Nov 25, 2024
1 parent 0fe9c73 commit beab346
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions backend/test/test_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,24 +697,6 @@ def test_update_read_only(admin_auth_headers, default_org_id):
assert data["readOnlyReason"] == ""


def test_update_list_public_collections(admin_auth_headers, default_org_id):
# Test that default is false
r = requests.get(f"{API_PREFIX}/orgs/{default_org_id}", headers=admin_auth_headers)
assert r.json()["enablePublicProfile"] is False

# Update
r = requests.post(
f"{API_PREFIX}/orgs/{default_org_id}/list-public-collections",
headers=admin_auth_headers,
json={"enablePublicProfile": True},
)
assert r.json()["updated"]

# Test update is reflected in GET response
r = requests.get(f"{API_PREFIX}/orgs/{default_org_id}", headers=admin_auth_headers)
assert r.json()["enablePublicProfile"]


def test_sort_orgs(admin_auth_headers):
# Create a few new orgs for testing
r = requests.post(
Expand Down

0 comments on commit beab346

Please sign in to comment.