Skip to content

Commit

Permalink
Blackify
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonCoderAS committed Dec 29, 2019
1 parent eb2f3e6 commit 5f790a6
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/integration/models/reddit/test_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,22 @@ def test_modflair_picked(self):
choices = sub.mod.flair.choices()
choice_list = list(choices)
sub.mod.flair.select(choice_list[0]["flair_template_id"])
sub.mod.flair.select(choice_list[0]["flair_template_id"], text="something")
sub.mod.flair.select(choice_list[0]["flair_template_id"], text="something", css_class="Something else")
sub.mod.flair.select(choice_list[0]["flair_template_id"], css_class="Something else")
sub.mod.flair.select(
choice_list[0]["flair_template_id"], text="something"
)
sub.mod.flair.select(
choice_list[0]["flair_template_id"],
text="something",
css_class="Something else",
)
sub.mod.flair.select(
choice_list[0]["flair_template_id"], css_class="Something else"
)
with pytest.raises(TypeError):
sub.mod.flair.select(text="something")
with pytest.raises(TypeError):
sub.mod.flair.select(text="something", css_class="Something else")
sub.mod.flair.select(
text="something", css_class="Something else"
)
with pytest.raises(TypeError):
sub.mod.flair.select(css_class="Something else")
sub.mod.flair.select(css_class="Something else")

0 comments on commit 5f790a6

Please sign in to comment.