Skip to content

Commit

Permalink
failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Feb 3, 2024
1 parent d3c5560 commit 130f4f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_drafts.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,13 @@ def test_no_drafts_for_month(build_draft: None) -> None:
def test_no_drafts_for_day(build_draft: None) -> None:
# folder exists becaues of URL for post
assert (Path('build') / '2014' / '10' / '30' / 'index.html').exists() is False


def test_draft_without_published(run_start: CliRunner):
# TODO: publish to /drafts/title?
expected_output = ''
set_example_as_draft()
remove_fields_from_example_post(('published', 'updated'))
result = run_start.invoke(build)
assert result.exit_code == 0
assert result.output == expected_output

0 comments on commit 130f4f0

Please sign in to comment.