Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional tests for /azure_byod #589

Merged
merged 3 commits into from
Apr 5, 2024
Merged

Conversation

cecheta
Copy link
Collaborator

@cecheta cecheta commented Apr 4, 2024

Closes #264 , closes #553

Purpose

  • This PR adds functional tests for the /api/conversation/azure_byod endpoint, both when using data and when not using data.

In order to do this, it was necessary to launch the application a second time with different environment variables, to distinguish between using data and not using data. There is a refactor of the existing code to accommodate this, mainly that a number of fixtures are changed to package scope, so they cleanup after the tests in that package have finished running. There is duplication between fixtures in the two packages, I wasn't sure how to avoid this while still ensuring that the fixtures cleaned up after running in each package.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[x] Other... Please describe: Tests

How to Test

  • poetry run pytest -m "not azure"

Copy link

github-actions bot commented Apr 4, 2024

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL164494742% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
46 0 💤 0 ❌ 0 🔥 10.206s ⏱️

Copy link
Collaborator

@adamdougal adamdougal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cecheta cecheta added this pull request to the merge queue Apr 5, 2024
Merged via the queue into main with commit d560b9a Apr 5, 2024
5 checks passed
@cecheta cecheta deleted the cecheta/app-functional-tests branch April 5, 2024 08:18
eduardogch pushed a commit to devopsdale/chat-with-your-data-solution-accelerator that referenced this pull request Apr 30, 2024
* Functional tests for /azure_byod

* Split tests into two

* Refactor + README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants