Skip to content

Commit

Permalink
Merge pull request mate-academy#78 from mate-academy/fix-test
Browse files Browse the repository at this point in the history
fixed test
  • Loading branch information
Nattalli authored Sep 9, 2022
2 parents 5997554 + 858ac8b commit 9542cb5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ def test_count_occurrences(phrase, letter, count):


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'"
import app
with open(app.main.__file__, "r") as f:
file_content = f.read()
assert "# write your code here" not in file_content, \
"You have to remove the unnecessary comment '# write your code here'"

0 comments on commit 9542cb5

Please sign in to comment.