Add tests for ai/export.py #1811
Annotations
3 errors
Test Unit:
lumen\tests\ai\test_export.py#L119
test_format_output_pipeline
TypeError: the JSON object must be str, bytes or bytearray, not list
|
Test Unit:
lumen\tests\ai\test_export.py#L151
test_format_output_view
assert [{'cell_type'...outputs': []}] == [{'cell_type'...ts': [], ...}]
At index 0 diff: {'cell_type': 'code', 'metadata': {}, 'execution_count': None, 'source': 'view = lm.View.from_spec({\n "pipeline": {\n "source": {\n "uri": "D:\\\\a\\\\lumen\\\\lumen\\\\lumen\\\\tests/sources\\\\catalog.yml",\n "type": "intake"\n },\n "table": "test"\n },\n "type": "table"\n})\nview', 'outputs': []} != {'cell_type': 'code', 'execution_count': None, 'metadata': {}, 'outputs': [], 'source': 'view = lm.View.from_spec({\n "pipeline": {\n "source": {\n "uri": "D:\\a\\lumen\\lumen\\lumen\\tests/sources\\catalog.yml",\n "type": "intake"\n },\n "table": "test"\n },\n "type": "table"\n})\nview'}
Full diff:
[
{
'cell_type': 'code',
'
|
Test Unit
Process completed with exit code 1.
|
Loading