Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Aug 13, 2024
1 parent 684eeec commit 75f6bfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/engines/extraction/test_json_extraction_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ def test_json_to_text_artifacts(self, engine):
a.value
for a in engine.json_to_text_artifacts('[{"test_key_1": "test_value_1"}, {"test_key_2": "test_value_2"}]')
] == ['{"test_key_1": "test_value_1"}', '{"test_key_2": "test_value_2"}']

def test_json_to_text_artifacts_no_matches(self, engine):
assert engine.json_to_text_artifacts("asdfasdfasdf") == []

0 comments on commit 75f6bfa

Please sign in to comment.