test : added edge-case unit tests for crawler _normalize_form - #1712
Closed
tmdeveloper007 wants to merge 1 commit into
Closed
test : added edge-case unit tests for crawler _normalize_form#1712tmdeveloper007 wants to merge 1 commit into
tmdeveloper007 wants to merge 1 commit into
Conversation
Owner
|
Closing: this PR is part of the same mass template-generated low-value test batch pattern. The PRs use repetitive boilerplate bodies, copy-pasted structures, and in several cases manufacture tiny helpers or duplicate existing coverage rather than contributing one focused, meaningful improvement. Please submit a smaller, genuinely curated PR if you want to work on one concrete test gap. |
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.
Closes #1707.
Summary of What Has Been Done:
Added
testing/backend/unit/test_crawler_normalize_form_edge_cases.pywith 25 unit tests covering edge cases for_normalize_forminbackend/secuscan/crawler.py.The existing tests in
test_crawler_surface_parsing.pycover DELETE method and non-dict input items. This file adds:Changes Made:
CSRF token detection (5 tests):
has_csrf_token=TrueState-changing via input types (5 tests):
Password field counting (3 tests):
Input count (3 tests):
Action URL normalization (4 tests):
Output shape (2 tests):
Impact it Made:
Note: This task is being handled by tmdeveloper007 — please assign to that account when picking it up.