Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Oct 26, 2024
1 parent bea3d84 commit 72cd7b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lumen/tests/ai/test_export.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
import datetime as dt
import json
import os
Expand All @@ -15,6 +16,9 @@
from lumen.sources.intake import IntakeSource
from lumen.views import Table

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)


@pytest.fixture
def source():
Expand Down Expand Up @@ -116,8 +120,8 @@ def test_format_output_pipeline(source):
pipeline = Pipeline(source=source, table="test")
msg = ChatMessage(object=LumenOutput(component=pipeline), user="User")

cells = json.loads(format_output(msg))
cells[0].pop("id") # Remove the 'id' field if present
cells = format_output(msg)
cells[0].pop("id")

expected_source = (
f"pipeline = lm.Pipeline.from_spec({{\n"
Expand Down

0 comments on commit 72cd7b9

Please sign in to comment.