Skip to content

Commit eb4a021

Browse files
improved string formatting in the tests
1 parent 3770cec commit eb4a021

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

tests/bot/exts/info/codeblock/test_parsing.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66
class FindFaultyCodeblocksTest(unittest.TestCase):
77
def test_should_recognize_missing_language(self):
88
message = """```
9-
x = 4
10-
y = 2
11-
print("abc")
12-
```"""
9+
x = 4
10+
y = 2
11+
print("abc")
12+
```"""
1313
faulty_code_blocks = parsing.find_faulty_code_blocks(message)
1414
self.assertIsNotNone(faulty_code_blocks)
1515
self.assertEqual(len(faulty_code_blocks), 1)
1616

1717
def test_should_recognize_contained_codeblock(self):
1818
message = """'
19-
wouldn't it be easier to do:
20-
```py
21-
say_hi = lambda:
22-
print('hello')
23-
print('world')
24-
say_hi()
19+
wouldn't it be easier to do:
20+
```py
21+
say_hi = lambda:
22+
print('hello')
23+
print('world')
24+
say_hi()
2525
26-
'
27-
```
26+
'
27+
```
2828
29-
'"""
29+
'"""
3030
faulty_code_blocks = parsing.find_faulty_code_blocks(message)
3131
self.assertIsNone(faulty_code_blocks)
3232

0 commit comments

Comments
 (0)