There was an error while loading. Please reload this page.
1 parent 0734f38 commit e739b5fCopy full SHA for e739b5f
exercises/16-Random-Colors-Loop/test.py
@@ -31,11 +31,11 @@ def test_black_in_array(capsys, app):
31
result = app.get_allStudentColors()
32
assert result.count("black") == 0
33
34
-@pytest.mark.it('You should use for to iterate 10 times')
+@pytest.mark.it('You should use a for loop to iterate 10 times')
35
def use_for_loop(capsys):
36
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
37
with open(path, 'r') as content_file:
38
content = content_file.read()
39
pattern = r"for\s*"
40
regex = re.compile(pattern)
41
- assert bool(regex.search(content)) == True
+ assert bool(regex.search(content)) == True
0 commit comments