Skip to content

Commit cabda7a

Browse files
committed
refactor(tests): clean up formatting in test_is_bot_name.py
1 parent c41b3b3 commit cabda7a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

backend/analytics_server/tests/utils/string/test_is_bot_name.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
2-
31
from mhq.utils.string import is_bot_name
42

3+
54
def test_simple_bot_names():
65
assert is_bot_name("test_bot")
76
assert is_bot_name("test-bot")
@@ -17,10 +16,10 @@ def test_bot_with_prefixes_and_suffixes():
1716

1817

1918
def test_special_patterns():
20-
assert is_bot_name("name_bot_suffix")
21-
assert is_bot_name("name_bot")
22-
assert is_bot_name("bot_name")
23-
assert is_bot_name("my_bot_is_cool")
19+
assert is_bot_name("name_bot_suffix")
20+
assert is_bot_name("name_bot")
21+
assert is_bot_name("bot_name")
22+
assert is_bot_name("my_bot_is_cool")
2423

2524

2625
def test_case_insensitivity():
@@ -33,13 +32,14 @@ def test_special_characters():
3332
assert is_bot_name("test@bot")
3433
assert is_bot_name("[bot]")
3534

35+
3636
def test_negative_cases():
3737
assert not is_bot_name("robotics")
3838
assert not is_bot_name("lobotomy")
3939
assert not is_bot_name("botany")
4040
assert not is_bot_name("about")
4141
assert not is_bot_name("robotic")
42-
assert not is_bot_name("bots")
42+
assert not is_bot_name("bots")
4343

4444

4545
def test_edge_cases():

0 commit comments

Comments
 (0)