diff --git a/schema/tests/data/project/negative/downloads-empty.yaml b/schema/tests/data/project/negative/downloads-empty.yaml new file mode 100644 index 000000000..23435b11d --- /dev/null +++ b/schema/tests/data/project/negative/downloads-empty.yaml @@ -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 diff --git a/schema/tests/project_test.py b/schema/tests/project_test.py index 6a090a04c..4696685e4 100644 --- a/schema/tests/project_test.py +++ b/schema/tests/project_test.py @@ -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):