Skip to content

Commit

Permalink
Remove useless code from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Jan 27, 2024
1 parent 8a1ccda commit b41f3dc
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/test_post_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ def test_build_post_404_invalid_date_month() -> None:
with (Path('posts') / 'example.md').open('r') as post_file:
lines = post_file.readlines()

with (Path('posts') / 'about.html').open('w') as post_file:
for line in lines:
if 'published' in line:
post_file.write('published: 2014-01-30')
elif 'updated' in line:
post_file.write('updated: 2014-01-30')
else:
post_file.write(line)

with (Path('pages') / 'about.html').open('r') as about_file:
lines = about_file.readlines()

Expand Down Expand Up @@ -87,15 +78,6 @@ def test_build_post_404_invalid_date_day() -> None:
with (Path('posts') / 'example.md').open('r') as post_file:
lines = post_file.readlines()

with (Path('posts') / 'about.html').open('w') as post_file:
for line in lines:
if 'published' in line:
post_file.write('published: 2014-10-03')
elif 'updated' in line:
post_file.write('updated: 2014-10-03')
else:
post_file.write(line)

with (Path('pages') / 'about.html').open('r') as about_file:
lines = about_file.readlines()

Expand Down

0 comments on commit b41f3dc

Please sign in to comment.