Skip to content

Commit

Permalink
authors: builder add bluesky and mastodon
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Dec 3, 2024
1 parent afe6409 commit 05238ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_author_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ def test_add_bluesky():
subschema = schema['properties']['ids']

author = AuthorBuilder()
author.add_bluesky('https://bsky.app/profile/example.bsky.social')
author.add_bluesky('kylecranmer.bsky.social')

expected = [{"value": "https://bsky.app/profile/example.bsky.social", "schema": "BLUESKY"}]
expected = [{"value": "kylecranmer.bsky.social", "schema": "BLUESKY"}]
result = author.obj['ids']

assert validate(result, subschema) is None
Expand All @@ -435,9 +435,9 @@ def test_add_mastodon():
subschema = schema['properties']['ids']

author = AuthorBuilder()
author.add_mastodon('https://mastodon.social/@example')
author.add_mastodon('[email protected]')

expected = [{"value": "https://mastodon.social/@example", "schema": "MASTODON"}]
expected = [{"value": "[email protected]", "schema": "MASTODON"}]
result = author.obj['ids']

assert validate(result, subschema) is None
Expand Down

0 comments on commit 05238ba

Please sign in to comment.