We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee2952f commit 858ac8bCopy full SHA for 858ac8b
tests/test_main.py
@@ -1,5 +1,4 @@
1
import pytest
2
-import re
3
4
from app.main import count_occurrences
5
@@ -26,7 +25,6 @@ def test_removed_comment():
26
25
import app
27
with open(app.main.__file__, "r") as f:
28
file_content = f.read()
29
- comment = re.compile("# write your code here")
30
- assert not comment.search(
31
- file_content
32
- ), "You have to remove the unnecessary comment '# write your code here'"
+ assert "# write your code here" not in file_content, \
+ "You have to remove the unnecessary comment '# write your code here'"
+
0 commit comments