Skip to content

Add tests for ai/export.py #1813

Add tests for ai/export.py

Add tests for ai/export.py #1813

Triggered via pull request October 26, 2024 00:45
Status Failure
Total duration 5m 42s
Artifacts 1

test.yaml

on: pull_request
Run pre-commit
18s
Run pre-commit
Setup workflow
0s
Setup workflow
Pixi lock
8s
Pixi lock
Matrix: core_test_suite
Matrix: unit_test_suite
Fit to window
Zoom out
Zoom in

Annotations

8 errors
unit:test-310:macos-latest: lumen/tests/sources/test_duckdb.py#L131
test_duckdb_transforms AssertionError: DataFrame.iloc[:, 0] (column name="B") are different DataFrame.iloc[:, 0] (column name="B") values are different (100.0 %) [index]: [0, 1] [left]: [1.0, 0.0] [right]: [0.0, 1.0] At positional index 0, first diff: 1.0 != 0.0
unit:test-310:windows-latest: lumen\tests\ai\test_export.py#L141
test_format_output_pipeline assert [{'cell_type'...outputs': []}] == [{'cell_type'...ts': [], ...}] At index 0 diff: {'cell_type': 'code', 'metadata': {}, 'execution_count': None, 'source': 'pipeline = lm.Pipeline.from_spec({\n "source": {\n "uri": "D:\\\\a\\\\lumen\\\\lumen\\\\lumen\\\\tests/sources\\\\catalog.yml",\n "type": "intake"\n },\n "table": "test"\n})\npipeline', 'outputs': []} != {'cell_type': 'code', 'metadata': {}, 'execution_count': None, 'source': 'pipeline = lm.Pipeline.from_spec({\n "source": {\n "uri": "D:\\a\\lumen\\lumen\\lumen\\tests/sources\\catalog.yml",\n "type": "intake"\n },\n "table": "test"\n})\npipeline', 'outputs': []} Full diff: [ { 'cell_type': 'code', 'execution_count': None, 'metadata': {}, 'outputs': [], 'source': 'pipeline = lm.Pipeline.from_spec({\n' ' "source": {\n' + ' "uri": ' - ' "uri": "D:\\a\\lumen\\lumen\\lumen\\tests/sources\\catalog.yml",\n' ? ----------- + '"D:\\\\a\\\\lumen\\\\lumen\\\\lumen\\\\tests/sources\\\\catalog.yml",\n' ?
unit:test-310:windows-latest: lumen\tests\ai\test_export.py#L159
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', '
unit:test-310:windows-latest
Process completed with exit code 1.
unit:test-312:windows-latest: lumen\tests\sources\test_duckdb.py#L144
test_duckdb_transforms_cache AssertionError: DataFrame.iloc[:, 0] (column name="B") are different DataFrame.iloc[:, 0] (column name="B") values are different (100.0 %) [index]: [0, 1] [left]: [1.0, 0.0] [right]: [0.0, 1.0] At positional index 0, first diff: 1.0 != 0.0
unit:test-312:windows-latest: lumen\tests\ai\test_export.py#L141
test_format_output_pipeline assert [{'cell_type'...outputs': []}] == [{'cell_type'...ts': [], ...}] At index 0 diff: {'cell_type': 'code', 'metadata': {}, 'execution_count': None, 'source': 'pipeline = lm.Pipeline.from_spec({\n "source": {\n "uri": "D:\\\\a\\\\lumen\\\\lumen\\\\lumen\\\\tests/sources\\\\catalog.yml",\n "type": "intake"\n },\n "table": "test"\n})\npipeline', 'outputs': []} != {'cell_type': 'code', 'metadata': {}, 'execution_count': None, 'source': 'pipeline = lm.Pipeline.from_spec({\n "source": {\n "uri": "D:\\a\\lumen\\lumen\\lumen\\tests/sources\\catalog.yml",\n "type": "intake"\n },\n "table": "test"\n})\npipeline', 'outputs': []} Full diff: [ { 'cell_type': 'code', 'execution_count': None, 'metadata': {}, 'outputs': [], 'source': 'pipeline = lm.Pipeline.from_spec({\n' ' "source": {\n' + ' "uri": ' - ' "uri": "D:\\a\\lumen\\lumen\\lumen\\tests/sources\\catalog.yml",\n' ? ----------- + '"D:\\\\a\\\\lumen\\\\lumen\\\\lumen\\\\tests/sources\\\\catalog.yml",\n' ?
unit:test-312:windows-latest: lumen\tests\ai\test_export.py#L159
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', '
unit:test-312:windows-latest
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
pixi-lock
188 KB