haystack icon indicating copy to clipboard operation
haystack copied to clipboard

tests: Improve token limit tests for OpenAI PromptNode layer

Open vblagoje opened this issue 1 year ago • 1 comments

What?

This PR improves the unit tests for OpenAIInvocationLayer focusing on token limitation triggering (and not)

Why?

A user raised an issue in #5184, which appears to be unrelated. However, this presented an opportunity to enhance the unit tests for OpenAIInvocationLayer.

How it can be used?

This PR does not affect the functionality used by end-users. It solely enhances the internal testing mechanisms for the OpenAIInvocationLayer.

Notes for the reviewer

There are no code changes. The changes are about unit testing for OpenAIInvocationLayer.

vblagoje avatar Jul 13 '23 09:07 vblagoje

Pull Request Test Coverage Report for Build 5541466011

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall First build on open_ai_token_limits at 45.32%

Totals Coverage Status
Change from base Build 5541261748: 45.3%
Covered Lines: 10454
Relevant Lines: 23067

💛 - Coveralls

coveralls avatar Jul 13 '23 09:07 coveralls