Skip to content

Commit

Permalink
modified first test
Browse files Browse the repository at this point in the history
  • Loading branch information
vgoehler committed Feb 13, 2020
1 parent c8f1bcb commit d9e052f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_python_eulerian_video_magnification.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

import pytest

from python_eulerian_video_magnification.cli import main


def test_main():
main([])
def test_main_as_smoke_test_wrong_filename():
"""This tests the setup of main for wrong input file only as a smoke test, as I'm not testing arparse"""
with pytest.raises(SystemExit) as e:
main(['fu.bar'])
assert "2" in str(e.value)

0 comments on commit d9e052f

Please sign in to comment.