Example #1
0
def test_simple_json_processor_success():
    data_processor = SimpleJsonDataProcessor()
    assert data_processor.process_data('{"test": 1}') == [Record({'test': 1})]
Example #2
0
def test_simple_json_processor_invalid_json_error():
    data_processor = SimpleJsonDataProcessor()
    with pytest.raises(Exception):
        data_processor.process_data('a')