Skip to content

Commit

Permalink
0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Jan 9, 2024
1 parent 810cb06 commit cc8e2ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_sphinx_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,15 @@ def test_spec_output():


def test_invalid_options():
with pytest.raises(ValueError) as e:
with pytest.raises(ValueError) as e: # noqa: PT011
SpecOutput.from_options({'hide-output': None})

assert str(e.value) == ('Invalid option: hide-output! '
'Supported: caption_output, hide_output, language_output, linenos_output')


with pytest.raises(ValueError) as e: # noqa: PT011
SpecOutput.from_options({'hide-output': None, 'language_output': 'asdf', 'caption-output': 'test'})

assert str(e.value) == ('Invalid options: caption-output, hide-output! '
'Supported: caption_output, hide_output, language_output, linenos_output')

0 comments on commit cc8e2ec

Please sign in to comment.