Browse Source

Update Black to 21.6b0

This found a few docstrings that I had messed up.
merge-requests/135/head
Deimos 3 years ago
parent
commit
ff5a3d82cb
  1. 4
      tildes/requirements-dev.txt
  2. 4
      tildes/tests/test_simplestring_field.py
  3. 2
      tildes/tests/test_topic_tags.py

4
tildes/requirements-dev.txt

@ -6,7 +6,7 @@ astroid==2.6.2
attrs==20.2.0 attrs==20.2.0
backcall==0.2.0 backcall==0.2.0
beautifulsoup4==4.9.3 beautifulsoup4==4.9.3
black==20.8b1
black==21.6b0
bleach==3.2.1 bleach==3.2.1
cached-property==1.5.2 cached-property==1.5.2
certifi==2020.6.20 certifi==2020.6.20
@ -42,7 +42,7 @@ mypy==0.910
packaging==20.4 packaging==20.4
parso==0.7.1 parso==0.7.1
pastedeploy==2.1.1 pastedeploy==2.1.1
pathspec==0.8.0
pathspec==0.8.1
pep517==0.10.0 pep517==0.10.0
pep8-naming==0.12.0 pep8-naming==0.12.0
pexpect==4.8.0 pexpect==4.8.0

4
tildes/tests/test_simplestring_field.py

@ -78,13 +78,13 @@ def test_control_chars_removed():
def test_zero_width_joiners_kept_and_collapsed(): def test_zero_width_joiners_kept_and_collapsed():
""""Ensure that multiple zero width joiners are collapsed like spaces."""
"""Ensure that multiple zero width joiners are collapsed like spaces."""
original = "🤷\u200D\u200D\u200D\u200d" original = "🤷\u200D\u200D\u200D\u200d"
assert process_string(original) == "🤷\u200D" assert process_string(original) == "🤷\u200D"
def test_zero_width_joiners_allowed_inside_emojis_and_not_other_words(): def test_zero_width_joiners_allowed_inside_emojis_and_not_other_words():
""""Ensure the zero width joiner char is kept inside emojis."""
"""Ensure the zero width joiner char is kept inside emojis."""
original = "🤷\u200D♀ foo\u200dbar" original = "🤷\u200D♀ foo\u200dbar"
assert process_string(original) == "🤷\u200D♀ foobar" assert process_string(original) == "🤷\u200D♀ foobar"

2
tildes/tests/test_topic_tags.py

@ -33,6 +33,6 @@ def test_tags_lowercased(text_topic):
def test_tags_synonyms(text_topic): def test_tags_synonyms(text_topic):
""" Ensure synonyms are replaced."""
"""Ensure synonyms are replaced."""
text_topic.tags = ["spoilers"] text_topic.tags = ["spoilers"]
assert text_topic.tags == ["spoiler"] assert text_topic.tags == ["spoiler"]
Loading…
Cancel
Save