Skip to content

Commit

Permalink
Merge pull request #154 from tisnik/fix-issue-149
Browse files Browse the repository at this point in the history
Fixed issue #149
  • Loading branch information
tisnik authored Mar 20, 2019
2 parents 1a2274c + f088a47 commit d3b2f28
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_node_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
from pathlib import Path
from parsers.node_parser import NodeParser
from werkzeug.datastructures import FileStorage
from werkzeug.exceptions import BadRequest
import pytest


def test_node_parser_no_files():
"""Test node parser with improper input."""
with pytest.raises(BadRequest) as e:
# TODO: add
# NodeParser.parse_output_files([])
# assert e is not None
NodeParser.parse_output_files(["foo", "bar", "baz"])
assert e is not None


def test_node_parser():
Expand Down

0 comments on commit d3b2f28

Please sign in to comment.