Skip to content

Commit

Permalink
blackify code of last PR
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed Mar 11, 2024
1 parent 99c3ef8 commit 19b23d5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/tests/api/test_api_speakers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ def test_submitter_serializer(submission):
with scope(event=submission.event):
user = submission.speakers.first()
data = SubmitterSerializer(user, event=submission.event).data
assert data.keys() == {"name", "code", "biography", "avatar", "avatar_source", "avatar_license"}
assert data.keys() == {
"name",
"code",
"biography",
"avatar",
"avatar_source",
"avatar_license",
}
assert data["name"] == user.name
assert data["code"] == user.code

Expand All @@ -26,7 +33,14 @@ def test_submitter_serializer_without_profile(submission):
user = submission.speakers.first()
user.profiles.all().delete()
data = SubmitterSerializer(user, event=submission.event).data
assert data.keys() == {"name", "code", "biography", "avatar", "avatar_source", "avatar_license"}
assert data.keys() == {
"name",
"code",
"biography",
"avatar",
"avatar_source",
"avatar_license",
}
assert data["name"] == user.name
assert data["code"] == user.code
assert data["biography"] == ""
Expand Down

0 comments on commit 19b23d5

Please sign in to comment.