Skip to content

Commit

Permalink
Merge pull request #802 from tisnik/more-tests-for-java-normalizer
Browse files Browse the repository at this point in the history
More tests for Java/Maven normalizer
  • Loading branch information
tisnik authored Mar 25, 2019
2 parents 1199bb9 + ae73c25 commit 56c1e21
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/data_normalizer/test_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,17 @@ def test_transforming_java_data(data, expected):
transformed_value = sorted(transformed_data[key]) \
if isinstance(transformed_data[key], list) else transformed_data[key]
assert transformed_value == value, transformed_data


def test_constructor_error_input():
"""Test MavenDataNormalizer constructor for error input."""
dn = MavenDataNormalizer({})
assert dn is not None


def test_normalize_error_input():
"""Test MavenDataNormalizer constructor for error input."""
dn = MavenDataNormalizer({})
assert dn is not None
n = dn.normalize()
assert n == {}

0 comments on commit 56c1e21

Please sign in to comment.