-
-
Notifications
You must be signed in to change notification settings - Fork 83
fix(scripts): return None from get_docx_document on missing template #2546
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
Open
immortal71
wants to merge
17
commits into
OWASP:master
Choose a base branch
from
immortal71:fix/2490-docx-none
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
edc7e2e
fix(scripts): return None from get_docx_document on missing template
immortal71 34d3910
style: run black formatter and update return type to Optional[Any]
immortal71 6a8ef05
test(coverage): add unit tests to raise coverage above 90%
immortal71 879d567
style: fix flake8 F841 unused variables ll and result in convert_utest
immortal71 ecb4357
test(copi): add tests to push Elixir COPI coverage above 90%
immortal71 299d536
test(copi): cover remaining 0.5% gap to reach 90% COPI coverage
immortal71 9595f2c
test(copi): add toggle_vote, toggle_continue_vote, format_capec and p…
immortal71 45d2071
test(copi): remove player-not-found redirect test that crashes LiveVi…
immortal71 4aab375
test(copi): remove 4 tests that mismodel runtime behaviour
immortal71 28b8ae8
ci: fix checkout fetch for pull_request_target workflow
immortal71 53fe8d8
ci: fix commentpr job checkout to use SHA not branch ref
immortal71 016b6bf
ci: remove unnecessary checkout from commentpr job
immortal71 508bd15
Update copi.owasp.org/test/copi_web/live/game_live/show_test.exs
immortal71 1ea5e89
Merge remote-tracking branch 'upstream/master' into fix/2490-docx-none
immortal71 b7f8722
Merge branch 'fix/2490-docx-none' of https://github.com/immortal71/co…
immortal71 a6135eb
style: fix flake8 and black issues in check_translations.py from upst…
immortal71 2728bc0
test(copi): add HealthController test to restore coverage above 90%
immortal71 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
9 changes: 9 additions & 0 deletions
9
copi.owasp.org/test/copi_web/controllers/health_controller_test.exs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| defmodule CopiWeb.HealthControllerTest do | ||
| use CopiWeb.ConnCase | ||
|
|
||
| test "GET /health returns 200 when database is available", %{conn: conn} do | ||
| conn = get(conn, "/health") | ||
| assert conn.status == 200 | ||
| assert conn.resp_body == "healthy\n" | ||
| end | ||
| end |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description lists only the changes to
scripts/convert.pyandtests/scripts/convert_utest.py, but the actual diff includes substantial additional changes: ~10 Elixir test files with new test coverage, CI workflow modifications (.github/workflows/run-tests-generate-output.yaml), and several new Python test classes beyond what's described (e.g.,TestValidateFilePaths,TestValidateCommandArgs,TestConvertWithLibreOffice,TestConvertWithDocx2pdf,TestCleanupTempFile, etc.). Consider updating the PR description to reflect the full scope of changes.