Skip to content

Commit

Permalink
tests: resources: fix description length test
Browse files Browse the repository at this point in the history
  • Loading branch information
yashlamba authored and kpsherva committed Nov 10, 2023
1 parent fe3319b commit 4124901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/communities/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ def test_post_metadata_schema_validation(
assert res.json["errors"][0]["field"] == "metadata.title"
# assert res.json["errors"][0]['messages'] == ['Title is too long.']

# Description max 5000
# Description max 250
data["metadata"]["title"] = "New Title"
data["metadata"]["description"] = "x" * 5001
data["metadata"]["description"] = "x" * 251
res = client.post("/communities", headers=headers, json=data)
assert res.status_code == 400
assert res.json["message"] == "A validation error occurred."
Expand Down

0 comments on commit 4124901

Please sign in to comment.