Skip to content

Commit

Permalink
Updated test case assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansh5461 committed Apr 13, 2024
1 parent 21e1d4d commit ad1381b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/ingestors/test_html_ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def poll_and_print():
if ingested != "" or ingested is not None:
counter += 1
# 1 extra IngestedToken signifying end of file
assert counter == 17
assert counter == 18

await poll_and_print()

Expand Down
4 changes: 2 additions & 2 deletions tests/llm_tests/mock_llm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def process_tokens(self, data: IngestedTokens):
# can set the state of the LLM using the set_state method
# The state of the LLM is stored in the state attribute of the LLM
# The state of the LLM is published to subscribers of the LLM
current_state = EventState(EventType.Graph, 1.0, "anything", "dummy.txt")
current_state = EventState(EventType.Graph, 1.0, "anything", "dummy.txt", doc_source="file://folder_path")
await self.set_state(new_state=current_state)

async def process_code(self, data: IngestedCode):
Expand Down Expand Up @@ -101,5 +101,5 @@ def handle_event(self, event_type: EventType, event_state: EventState):

async def terminate_querent(llm_mocker: MockLLMEngine):
await asyncio.sleep(60)
event_state = EventState(event_type=EventType.Graph, payload = "terminate", timestamp=1.0, file="dummy.txt")
event_state = EventState(event_type=EventType.Graph, payload = "terminate", timestamp=1.0, file="dummy.txt", doc_source="file://folder_path")
await llm_mocker.set_state(event_state)

0 comments on commit ad1381b

Please sign in to comment.