Skip to content

Commit

Permalink
fix post link
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 authored and osoken committed Aug 18, 2024
1 parent 2763c48 commit 75c4be4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/birdxplorer_common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ class XUser(BaseModel):


class Post(BaseModel):
link: HttpUrl
post_id: PostId
link: Optional[HttpUrl] = None
x_user_id: UserId
x_user: XUser
text: str
Expand Down
3 changes: 3 additions & 0 deletions common/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def post_samples(post_factory: PostFactory, x_user_samples: List[XUser]) -> Gene
posts = [
post_factory.build(
post_id="2234567890123456781",
link=None,
x_user_id="1234567890123456781",
x_user=x_user_samples[0],
text="""\
Expand All @@ -219,6 +220,7 @@ def post_samples(post_factory: PostFactory, x_user_samples: List[XUser]) -> Gene
),
post_factory.build(
post_id="2234567890123456791",
link=None,
x_user_id="1234567890123456781",
x_user=x_user_samples[0],
text="""\
Expand All @@ -233,6 +235,7 @@ def post_samples(post_factory: PostFactory, x_user_samples: List[XUser]) -> Gene
),
post_factory.build(
post_id="2234567890123456801",
link=None,
x_user_id="1234567890123456782",
x_user=x_user_samples[1],
text="""\
Expand Down

0 comments on commit 75c4be4

Please sign in to comment.