-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance target and organization management with validation and …
…tests - Imports and Dependencies: Reorganized and added necessary imports for better modularity and functionality. - File Upload Validation: Added checks for empty file uploads and invalid IP addresses during target addition. - Error Handling: Improved error handling in delete_target and delete_organization views to handle non-existent entities. - Form Enhancements: Updated AddOrganizationForm to use ModelForm and improved domain selection logic. - Utility Functions: Moved get_ip_info and get_ips_from_cidr_range functions to common_func.py for better reusability. - Validators: Added a new validate_ip function in validators.py to validate IP addresses. - Unit Tests: Added comprehensive unit tests for target and organization views to ensure proper functionality and error handling.
- Loading branch information
Showing
6 changed files
with
565 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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 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 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