Conversation
…search environments
…or different edge cases
…refactors for readability, changes to upstream_url_regex
…gic, also organized the functions
…ts to service/backend.py WIP
…tests for duplicate backend deletion
…_check_backend_path_file
…lenames, minor changes in service/backend.py
…ackend and delete_backend functions for improved clarity and robustness.
feat(Dependencies): Update dependency uvicorn to v0.52.0
feat(Dependencies): Update github/codeql-action digest to e4fba86
Changed the runner environment from self-hosted to ubuntu-latest.
… into refactor/docker
Refactor/docker
feat(Dependencies): Pin dependencies
| datasource | package | from | to | | ---------- | ------- | ------- | ------- | | pypi | fastapi | 0.139.2 | 0.141.1 |
feat(Dependencies): Update actions/checkout digest to 3d3c42e
feat(Dependencies): Update dependency fastapi to v0.141.1
| mock_reload_openresty.assert_awaited_once() | ||
| assert result is True | ||
| except NotFound as e: | ||
| assert exception_expected and (not backend_path_filenames or number_of_files == 0) |
| except NotFound as e: | ||
| assert exception_expected and (not backend_path_filenames or number_of_files == 0) | ||
| except InternalServerError as e: | ||
| assert exception_expected and backend_path_filenames and number_of_files != 1 |
| except InternalServerError as e: | ||
| assert exception_expected and backend_path_filenames and number_of_files != 1 | ||
| except OSError as e: | ||
| assert exception_expected and (not backend_path_filenames or number_of_files == 0) |
Comment on lines
+10
to
+13
| env = Environment( | ||
| loader=FileSystemLoader(TEMPLATE_DIR), | ||
| autoescape=False, | ||
| ) |
| @@ -0,0 +1,46 @@ | |||
| import pytest | |||
| from unittest.mock import patch | |||
| from fastapi import HTTPException | |||
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.
No description provided.