Test API Infrastructure#364
Open
Relvox wants to merge 13 commits into
Open
Conversation
mc-dorzo
reviewed
May 6, 2025
Contributor
There was a problem hiding this comment.
move those files under src/parlant/api/ and also the tests under tests/api/
mc-dorzo
reviewed
May 6, 2025
| from lagom import Container | ||
|
|
||
|
|
||
| class MockLogger: |
Contributor
There was a problem hiding this comment.
you can just user container[Logger]
Contributor
Author
There was a problem hiding this comment.
can you explain more about what you mean?
I'm using the MockLogger to verify which steps get called. Not sure how to do that directly with a Logger.
And container[Logger] doesn't expose fields to easily check what lines it got.
Contributor
Author
|
rebase + tests ran and passed |
d4f4b79 to
3ace963
Compare
test(app): added minmal tests for new `AppWrapper` mechanism Signed-off-by: Nathan Dortman <relvox@gmail.com> Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
feat(api): added test endpoint for guideline matching feat(api): added test endpoint for tool call inference Signed-off-by: Nathan Dortman <relvox@gmail.com> Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: NathanD <relvox@gmail.com> test(api):tool call inference Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Dor Zohar <dor@emcie.co> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: Dor Zohar <dor@emcie.co> Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: Dor Zohar <dor@emcie.co> Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: Dor Zohar <dor@emcie.co> Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: Dor Zohar <dor@emcie.co> Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
test(test-apis): fixed basic e2e test for test-apis Signed-off-by: NathanD <relvox@gmail.com> Signed-off-by: Kfir Blaier <kfir@emcie.co>
Signed-off-by: Kfir Blaier <kfir@emcie.co>
3ace963 to
e21bc61
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR covers milestones 1 and 2 of #291 .
--test [opt_module]flag to start the server in a special test mode.guideline_matcherandtool_call_inference.