Skip to content

Commit

Permalink
Let's also test instrument_llm_calls=True.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarnathan committed Jun 14, 2024
1 parent cff9c23 commit fc07963
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_teardown.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ def test_exit(self):
def test_can_stop_with_no_instrumentation(self):
non_instrumented = Client(self.api_key, instrument_llm_calls=False,
allow_multiple_instances=True)
assert non_instrumented.llm_tracker is None
non_instrumented.stop_instrumenting()

def test_initializes_llm_tracker_when_enabled(self):
instrumented = Client(self.api_key, instrument_llm_calls=True,
allow_multiple_instances=True)
assert instrumented.llm_tracker is not None

0 comments on commit fc07963

Please sign in to comment.