Refactor test cases for improved readability and consistency
- Updated test_dns.py to enhance mock function definitions and improve spacing for better readability. - Modified test_filters.py to streamline assertions and ensure consistent formatting across test cases. - Cleaned up test_import_export.py by organizing imports and ensuring consistent formatting in CSV and JSON tests. - Improved test_main.py by refining mock setups and ensuring consistent error handling in assertions.
This commit is contained in:
parent
0710d10fac
commit
7872991e0b
42 changed files with 2376 additions and 2735 deletions
7
docs/adr/0001-privileged-mode-gates-writes.md
Normal file
7
docs/adr/0001-privileged-mode-gates-writes.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Privileged mode gates system-file writes
|
||||
|
||||
The application starts read-only and permits changes to `/etc/hosts` only after
|
||||
sudo access has been validated and a timestamped backup has been created. All
|
||||
privileged writes go through `HostsManager` during that mode. This makes the
|
||||
authorization boundary visible to the user and guarantees a pre-edit safety
|
||||
snapshot; the temporary backup is not a user-facing recovery system.
|
||||
Loading…
Add table
Add a link
Reference in a new issue