Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 3ae371a

Browse files
committed
fix: ci
1 parent 89e4908 commit 3ae371a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

literalai/observability/step.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ def __call__(self, func):
512512
parent_id=self.parent_id,
513513
thread_id=self.thread_id,
514514
root_run_id=self.root_run_id,
515+
**self.kwargs,
515516
)
516517

517518
async def __aenter__(self):

tests/e2e/test_e2e.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@ async def test_ingestion(
276276
step.metadata = {"foo": "bar"}
277277
assert async_client.event_processor.event_queue._qsize() == 0
278278
stack = active_steps_var.get()
279-
assert len(stack) == 1
279+
assert stack is not None and len(stack) == 1
280280

281281
assert async_client.event_processor.event_queue._qsize() == 1
282282

283283
stack = active_steps_var.get()
284-
assert len(stack) == 0
284+
assert stack is not None and len(stack) == 0
285285

286286
@pytest.mark.timeout(5)
287287
async def test_thread_decorator(
@@ -666,14 +666,14 @@ async def test_prompt(self, async_client: AsyncLiteralClient):
666666
async def test_prompt_cache(self, async_client: AsyncLiteralClient):
667667
prompt = await async_client.api.get_prompt(name="Default", version=0)
668668
assert prompt is not None
669-
669+
670670
original_key = async_client.api.api_key
671671
async_client.api.api_key = "invalid-api-key"
672-
672+
673673
cached_prompt = await async_client.api.get_prompt(name="Default", version=0)
674674
assert cached_prompt is not None
675675
assert cached_prompt.id == prompt.id
676-
676+
677677
async_client.api.api_key = original_key
678678

679679
@pytest.mark.timeout(5)

0 commit comments

Comments
 (0)