Skip to content
Snippets Groups Projects
Commit c42004d7 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fixed tests

parent 75e2f9c4
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,14 @@ class TestMergingSource(SourceTestCase):
def test_fails_on_none(self):
s = MergingSource(
JSONSource('{"a: [5]}'),
on_fail=MergingSource.SILENT,
fail_if_no_sources_are_correct=True
)
self.assertRaises(ConfigurationError, s.provide)
s = MergingSource(
JSONSource('{"a: [5]}'),
on_fail=MergingSource.SILENT,
fail_if_no_sources_are_correct=False
)
self.assertEqual(s.provide(), {})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment