Skip to content

Commit

Permalink
Update test_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattalli authored Sep 9, 2022
1 parent ee2952f commit 858ac8b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import re

from app.main import count_occurrences

Expand All @@ -26,7 +25,6 @@ def test_removed_comment():
import app
with open(app.main.__file__, "r") as f:
file_content = f.read()
comment = re.compile("# write your code here")
assert not comment.search(
file_content
), "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 comments on commit 858ac8b

Please sign in to comment.