Skip to content

Commit

Permalink
download att
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgoyal0110 committed Feb 2, 2025
1 parent 5509436 commit d38c1dc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions schema/tests/data/project/negative/downloads-empty.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Test Project"
level: 3
leaders:
- github: "testuser1"
- github: "testuser2"
downloads:
pitch: A very brief, one-line description of your project
tags:
- example-tag-1
- example-tag-2
- example-tag-3
type: code
3 changes: 1 addition & 2 deletions schema/tests/project_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def test_positive(project_schema):
("level-invalid.yaml", "2.5 is not one of [2, 3, 3.5, 4]"),
("name-empty.yaml", "'' is too short"),
("name-none.yaml", "None is not of type 'string'"),
("downloads-empty.yaml", "[] is too short"),
("downloads-invalid.yaml", "'not-a-url' is not a valid URL"),
("downloads-empty.yaml", "None is not of type 'array'"),
],
)
def test_negative(project_schema, file_path, error_message):
Expand Down

0 comments on commit d38c1dc

Please sign in to comment.