Skip to content

Commit

Permalink
Merge branch 'main' into feature/update-ranking-users
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedxgouda authored Mar 4, 2025
2 parents 8aa583b + 2360b30 commit 345e170
Show file tree
Hide file tree
Showing 231 changed files with 205 additions and 205 deletions.
76 changes: 38 additions & 38 deletions schema/tests/chapter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,72 +12,72 @@
@pytest.mark.parametrize(
("file_path", "error_message"),
[
("blog-empty.yaml", "'' is not a 'uri'"),
("blog-invalid.yaml", "'invalid-blog-uri' is not a 'uri'"),
("blog-null.yaml", "None is not a 'uri'"),
("community-empty.yaml", "[] should be non-empty"),
("blog_empty.yaml", "'' is not a 'uri'"),
("blog_invalid.yaml", "'invalid-blog-uri' is not a 'uri'"),
("blog_null.yaml", "None is not a 'uri'"),
("community_empty.yaml", "[] should be non-empty"),
(
"community-non-unique.yaml",
"community_non_unique.yaml",
"[{'platform': 'discord', 'url': 'https://discord.com/example'}, "
"{'platform': 'discord', 'url': 'https://discord.com/example'}] "
"has non-unique elements",
),
("community-null.yaml", "None is not of type 'array'"),
("country-empty.yaml", "'' should be non-empty"),
("country-null.yaml", "None is not of type 'string'"),
("country-undefined.yaml", "'country' is a required property"),
("events-empty.yaml", "[] should be non-empty"),
("community_null.yaml", "None is not of type 'array'"),
("country_empty.yaml", "'' should be non-empty"),
("country_null.yaml", "None is not of type 'string'"),
("country_undefined.yaml", "'country' is a required property"),
("events_empty.yaml", "[] should be non-empty"),
(
"events-non-unique.yaml",
"events_non_unique.yaml",
"['https://example.com/event1', 'https://example.com/event1'] has non-unique elements",
),
("events-null.yaml", "None is not of type 'array'"),
("leaders-empty.yaml", "[] is too short"),
("events_null.yaml", "None is not of type 'array'"),
("leaders_empty.yaml", "[] is too short"),
(
"leaders-non-unique.yaml",
"leaders_non_unique.yaml",
"[{'github': 'leader1'}, {'github': 'leader1'}] has non-unique elements",
),
("leaders-null.yaml", "None is not of type 'array'"),
("leaders-undefined.yaml", "'leaders' is a required property"),
("logo-empty.yaml", "[] should be non-empty"),
("leaders_null.yaml", "None is not of type 'array'"),
("leaders_undefined.yaml", "'leaders' is a required property"),
("logo_empty.yaml", "[] should be non-empty"),
(
"logo-non-unique.yaml",
"logo_non_unique.yaml",
"[{'small': 'https://example.com/smallLogo.png', "
"'medium': 'https://example.com/mediumLogo.png', "
"'large': 'https://example.com/largeLogo.png'}, "
"{'small': 'https://example.com/smallLogo.png', "
"'medium': 'https://example.com/mediumLogo.png', "
"'large': 'https://example.com/largeLogo.png'}] has non-unique elements",
),
("logo-null.yaml", "None is not of type 'array'"),
("meetup_group-empty.yaml", "'' should be non-empty"),
("meetup_group-null.yaml", "None is not of type 'string'"),
("name-empty.yaml", "'' is too short"),
("name-null.yaml", "None is not of type 'string'"),
("name-undefined.yaml", "'name' is a required property"),
("region-empty.yaml", "'' should be non-empty"),
("region-null.yaml", "None is not of type 'string'"),
("social-media-empty.yaml", "[] should be non-empty"),
("logo_null.yaml", "None is not of type 'array'"),
("meetup_group_empty.yaml", "'' should be non-empty"),
("meetup_group_null.yaml", "None is not of type 'string'"),
("name_empty.yaml", "'' is too short"),
("name_null.yaml", "None is not of type 'string'"),
("name_undefined.yaml", "'name' is a required property"),
("region_empty.yaml", "'' should be non-empty"),
("region_null.yaml", "None is not of type 'string'"),
("social_media_empty.yaml", "[] should be non-empty"),
(
"social-media-non-unique.yaml",
"social_media_non_unique.yaml",
"[{'platform': 'youtube', 'url': 'https://youtube.com/channel/123'}, "
"{'platform': 'youtube', 'url': 'https://youtube.com/channel/123'}] "
"has non-unique elements",
),
("social-media-null.yaml", "None is not of type 'array'"),
("sponsors-empty.yaml", "[] should be non-empty"),
("social_media_null.yaml", "None is not of type 'array'"),
("sponsors_empty.yaml", "[] should be non-empty"),
(
"sponsors-non-unique.yaml",
"sponsors_non_unique.yaml",
"[{'name': 'CyberSec Corp', 'url': 'https://cybersec.com'}, "
"{'name': 'CyberSec Corp', 'url': 'https://cybersec.com'}] has non-unique elements",
),
("sponsors-null.yaml", "None is not of type 'array'"),
("tags-empty.yaml", "[] is too short"),
("tags-non-unique.yaml", "['chapter-tag-1', 'chapter-tag-1'] is too short"),
("tags-null.yaml", "None is not of type 'array'"),
("tags-undefined.yaml", "'tags' is a required property"),
("website-empty.yaml", "['example-tag-1'] is too short"),
("website-null.yaml", "None is not of type 'string'"),
("sponsors_null.yaml", "None is not of type 'array'"),
("tags_empty.yaml", "[] is too short"),
("tags_non_unique.yaml", "['chapter-tag-1', 'chapter-tag-1'] is too short"),
("tags_null.yaml", "None is not of type 'array'"),
("tags_undefined.yaml", "'tags' is a required property"),
("website_empty.yaml", "['example-tag-1'] is too short"),
("website_null.yaml", "None is not of type 'string'"),
],
)
def test_negative(chapter_schema, file_path, error_message):
Expand Down
74 changes: 37 additions & 37 deletions schema/tests/committee_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,59 +12,59 @@
@pytest.mark.parametrize(
("file_path", "error_message"),
[
("community-empty.yaml", "[] should be non-empty"),
("community_empty.yaml", "[] should be non-empty"),
(
"community-non-unique.yaml",
"community_non_unique.yaml",
"[{'platform': 'discord', 'url': 'https://discord.com/example'}, "
"{'platform': 'discord', 'url': 'https://discord.com/example'}] "
"has non-unique elements",
),
("community-null.yaml", "None is not of type 'array'"),
("description-null.yaml", "None is not of type 'string'"),
("description-undefined.yaml", "'description' is a required property"),
("events-empty.yaml", "[] should be non-empty"),
("events-invalid.yaml", "'xyz-abc' is not a 'uri'"),
("community_null.yaml", "None is not of type 'array'"),
("description_null.yaml", "None is not of type 'string'"),
("description_undefined.yaml", "'description' is a required property"),
("events_empty.yaml", "[] should be non-empty"),
("events_invalid.yaml", "'xyz-abc' is not a 'uri'"),
(
"events-non-unique.yaml",
"events_non_unique.yaml",
"['https://example.com/event1', 'https://example.com/event1'] has non-unique elements",
),
("events-null.yaml", "None is not of type 'array'"),
("group-mail-empty.yaml", "'' is not a 'email'"),
("group-mail-null.yaml", "None is not a 'email'"),
("members-empty.yaml", "[] is too short"),
("members-null.yaml", "None is not of type 'array'"),
("members-undefined.yaml", "'members' is a required property"),
("logo-empty.yaml", "[] should be non-empty"),
("logo-null.yaml", "None is not of type 'array'"),
("events_null.yaml", "None is not of type 'array'"),
("group_mail_empty.yaml", "'' is not a 'email'"),
("group_mail_null.yaml", "None is not a 'email'"),
("members_empty.yaml", "[] is too short"),
("members_null.yaml", "None is not of type 'array'"),
("members_undefined.yaml", "'members' is a required property"),
("logo_empty.yaml", "[] should be non-empty"),
("logo_null.yaml", "None is not of type 'array'"),
(
"logo-non-unique.yaml",
"logo_non_unique.yaml",
"[{'small': 'https://example.com/smallLogo.png', "
"'medium': 'https://example.com/mediumLogo.png', "
"'large': 'https://example.com/largeLogo.png'}, "
"{'small': 'https://example.com/smallLogo.png', "
"'medium': 'https://example.com/mediumLogo.png', "
"'large': 'https://example.com/largeLogo.png'}] has non-unique elements",
),
("meeting-minutes-null.yaml", "None is not of type 'array'"),
("meeting-minutes-invalid.yaml", "'https://xyz' is not a 'uri'"),
("name-empty.yaml", "'' is too short"),
("name-undefined.yaml", "'name' is a required property"),
("resources-invalid.yaml", "'https://xyz' is not a 'uri'"),
("resources-null.yaml", "None is not of type 'array'"),
("scope-null.yaml", "None is not of type 'string'"),
("scope-invalid.yaml", "'scope' is a required property"),
("social-media-empty.yaml", "[] should be non-empty"),
("social-media-invalid.yaml", "'https://xyz' is not a 'uri'"),
("social-media-null.yaml", "None is not of type 'array'"),
("sponsors-empty.yaml", "[] should be non-empty"),
("sponsors-invalid.yaml", "'https://xyz' is not a 'uri'"),
("sponsors-null.yaml", "None is not of type 'array'"),
("tags-empty.yaml", "[] is too short"),
("tags-null.yaml", "None is not of type 'array'"),
("tags-undefined.yaml", "'tags' is a required property"),
("website-empty.yaml", "'' is not a 'uri'"),
("website-invalid-url.yaml", "'https://xyz' is not a 'uri'"),
("website-null.yaml", "None is not a 'uri'"),
("meeting_minutes_null.yaml", "None is not of type 'array'"),
("meeting_minutes_invalid.yaml", "'https://xyz' is not a 'uri'"),
("name_empty.yaml", "'' is too short"),
("name_undefined.yaml", "'name' is a required property"),
("resources_invalid.yaml", "'https://xyz' is not a 'uri'"),
("resources_null.yaml", "None is not of type 'array'"),
("scope_null.yaml", "None is not of type 'string'"),
("scope_invalid.yaml", "'scope' is a required property"),
("social_media_empty.yaml", "[] should be non-empty"),
("social_media_invalid.yaml", "'https://xyz' is not a 'uri'"),
("social_media_null.yaml", "None is not of type 'array'"),
("sponsors_empty.yaml", "[] should be non-empty"),
("sponsors_invalid.yaml", "'https://xyz' is not a 'uri'"),
("sponsors_null.yaml", "None is not of type 'array'"),
("tags_empty.yaml", "[] is too short"),
("tags_null.yaml", "None is not of type 'array'"),
("tags_undefined.yaml", "'tags' is a required property"),
("website_empty.yaml", "'' is not a 'uri'"),
("website_invalid_url.yaml", "'https://xyz' is not a 'uri'"),
("website_null.yaml", "None is not a 'uri'"),
],
)
def test_negative(committee_schema, file_path, error_message):
Expand Down
20 changes: 10 additions & 10 deletions schema/tests/common/community_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
@pytest.mark.parametrize(
("file_path", "error_message"),
[
("description-empty.yaml", "'' is too short"),
("description-null.yaml", "None is not of type 'string'"),
("platform-empty.yaml", "'' is not one of ['discord', 'slack']"),
("platform-invalid.yaml", "'telegram' is not one of ['discord', 'slack']"),
("platform-null.yaml", "None is not one of ['discord', 'slack']"),
("platform-undefined.yaml", "'platform' is a required property"),
("url-empty.yaml", "'' is not a 'uri'"),
("url-invalid.yaml", "'discord.com/invalid' is not a 'uri'"),
("url-null.yaml", "None is not a 'uri'"),
("url-undefined.yaml", "'url' is a required property"),
("description_empty.yaml", "'' is too short"),
("description_null.yaml", "None is not of type 'string'"),
("platform_empty.yaml", "'' is not one of ['discord', 'slack']"),
("platform_invalid.yaml", "'telegram' is not one of ['discord', 'slack']"),
("platform_null.yaml", "None is not one of ['discord', 'slack']"),
("platform_undefined.yaml", "'platform' is a required property"),
("url_empty.yaml", "'' is not a 'uri'"),
("url_invalid.yaml", "'discord.com/invalid' is not a 'uri'"),
("url_null.yaml", "None is not a 'uri'"),
("url_undefined.yaml", "'url' is a required property"),
],
)
def test_negative(common_schema, file_path, error_message):
Expand Down
24 changes: 12 additions & 12 deletions schema/tests/common/logo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
@pytest.mark.parametrize(
("file_path", "error_message"),
[
("large-empty.yaml", "'' is not a 'uri'"),
("large-invalid.yaml", "'image/large.png' is not a 'uri'"),
("large-null.yaml", "None is not of type 'string'"),
("large-undefined.yaml", "'large' is a required property"),
("medium-empty.yaml", "'' is not a 'uri'"),
("medium-invalid.yaml", "'image/medium.png' is not a 'uri'"),
("medium-null.yaml", "None is not of type 'string'"),
("medium-undefined.yaml", "'medium' is a required property"),
("small-empty.yaml", "'' is not a 'uri'"),
("small-invalid.yaml", "'image/small.png' is not a 'uri'"),
("small-null.yaml", "None is not of type 'string'"),
("small-undefined.yaml", "'small' is a required property"),
("large_empty.yaml", "'' is not a 'uri'"),
("large_invalid.yaml", "'image/large.png' is not a 'uri'"),
("large_null.yaml", "None is not of type 'string'"),
("large_undefined.yaml", "'large' is a required property"),
("medium_empty.yaml", "'' is not a 'uri'"),
("medium_invalid.yaml", "'image/medium.png' is not a 'uri'"),
("medium_null.yaml", "None is not of type 'string'"),
("medium_undefined.yaml", "'medium' is a required property"),
("small_empty.yaml", "'' is not a 'uri'"),
("small_invalid.yaml", "'image/small.png' is not a 'uri'"),
("small_null.yaml", "None is not of type 'string'"),
("small_undefined.yaml", "'small' is a required property"),
],
)
def test_negative(common_schema, file_path, error_message):
Expand Down
22 changes: 11 additions & 11 deletions schema/tests/common/person_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
@pytest.mark.parametrize(
("file_path", "error_message"),
[
("email-empty.yaml", "'' is not a 'email'"),
("email-invalid.yaml", "'name@invalid' is not a 'email'"),
("email-null.yaml", "None is not a 'email'"),
("github-empty.yaml", "'' does not match '^[a-zA-Z0-9-]{1,39}$'"),
("github-invalid.yaml", "'user@name' does not match '^[a-zA-Z0-9-]{1,39}$'"),
("github-null.yaml", "None is not of type 'string'"),
("github-undefined.yaml", "'github' is a required property"),
("name-empty.yaml", "'' is too short"),
("name-null.yaml", "None is not of type 'string'"),
("slack-empty.yaml", "'' does not match '^[a-zA-Z0-9._-]{1,21}$'"),
("slack-null.yaml", "None is not of type 'string'"),
("email_empty.yaml", "'' is not a 'email'"),
("email_invalid.yaml", "'name@invalid' is not a 'email'"),
("email_null.yaml", "None is not a 'email'"),
("github_empty.yaml", "'' does not match '^[a-zA-Z0-9-]{1,39}$'"),
("github_invalid.yaml", "'user@name' does not match '^[a-zA-Z0-9-]{1,39}$'"),
("github_null.yaml", "None is not of type 'string'"),
("github_undefined.yaml", "'github' is a required property"),
("name_empty.yaml", "'' is too short"),
("name_null.yaml", "None is not of type 'string'"),
("slack_empty.yaml", "'' does not match '^[a-zA-Z0-9._-]{1,21}$'"),
("slack_null.yaml", "None is not of type 'string'"),
],
)
def test_negative(common_schema, file_path, error_message):
Expand Down
28 changes: 14 additions & 14 deletions schema/tests/common/repository_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
@pytest.mark.parametrize(
("file_path", "error_message"),
[
("changelog-empty.yaml", "'' is not a 'uri'"),
("changelog-null.yaml", "None is not a 'uri'"),
("code_of_conduct-empty.yaml", "'' is not a 'uri'"),
("code_of_conduct-null.yaml", "None is not a 'uri'"),
("contribution_guide-empty.yaml", "'' is not a 'uri'"),
("contribution_guide-null.yaml", "None is not a 'uri'"),
("description-empty.yaml", "'' is too short"),
("description-null.yaml", "None is not of type 'string'"),
("name-empty.yaml", "'' is too short"),
("name-null.yaml", "None is not of type 'string'"),
("url-empty.yaml", "'' is not a 'uri'"),
("url-invalid.yaml", "'github/repo' is not a 'uri'"),
("url-null.yaml", "None is not a 'uri'"),
("url-undefined.yaml", "'url' is a required property"),
("changelog_empty.yaml", "'' is not a 'uri'"),
("changelog_null.yaml", "None is not a 'uri'"),
("code_of_conduct_empty.yaml", "'' is not a 'uri'"),
("code_of_conduct_null.yaml", "None is not a 'uri'"),
("contribution_guide_empty.yaml", "'' is not a 'uri'"),
("contribution_guide_null.yaml", "None is not a 'uri'"),
("description_empty.yaml", "'' is too short"),
("description_null.yaml", "None is not of type 'string'"),
("name_empty.yaml", "'' is too short"),
("name_null.yaml", "None is not of type 'string'"),
("url_empty.yaml", "'' is not a 'uri'"),
("url_invalid.yaml", "'github/repo' is not a 'uri'"),
("url_null.yaml", "None is not a 'uri'"),
("url_undefined.yaml", "'url' is a required property"),
],
)
def test_negative(common_schema, file_path, error_message):
Expand Down
20 changes: 10 additions & 10 deletions schema/tests/common/social_media_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@
@pytest.mark.parametrize(
("file_path", "error_message"),
[
("description-empty.yaml", "'' is too short"),
("description-null.yaml", "None is not of type 'string'"),
("description_empty.yaml", "'' is too short"),
("description_null.yaml", "None is not of type 'string'"),
(
"platform-empty.yaml",
"platform_empty.yaml",
"'' is not one of ['bluesky', 'linkedin', 'x', 'youtube']",
),
(
"platform-invalid.yaml",
"platform_invalid.yaml",
"'bitcoin' is not one of ['bluesky', 'linkedin', 'x', 'youtube']",
),
(
"platform-null.yaml",
"platform_null.yaml",
"None is not one of ['bluesky', 'linkedin', 'x', 'youtube']",
),
("platform-undefined.yaml", "'platform' is a required property"),
("url-empty.yaml", "'' is not a 'uri'"),
("url-invalid.yaml", "'https://bsky' is not a 'uri'"),
("url-null.yaml", "None is not of type 'string'"),
("url-undefined.yaml", "'url' is a required property"),
("platform_undefined.yaml", "'platform' is a required property"),
("url_empty.yaml", "'' is not a 'uri'"),
("url_invalid.yaml", "'https://bsky' is not a 'uri'"),
("url_null.yaml", "None is not of type 'string'"),
("url_undefined.yaml", "'url' is a required property"),
],
)
def test_negative(common_schema, file_path, error_message):
Expand Down
Loading

0 comments on commit 345e170

Please sign in to comment.