Description
The project lacks automated testing. Adding unit tests will improve code reliability and make future contributions safer.
What needs to be done:
- Set up pytest framework
- Create
tests/ directory
- Write unit tests for:
setup_database()
log_attempt()
extract_message()
wifi_login() (with mocked requests)
view_logs()
- Add mock responses for HTTP requests
- Create test database separate from production
- Add GitHub Actions workflow for automated testing
- Update README with testing instructions
Expected outcome:
Comprehensive test coverage with CI/CD integration.
Open for discussions! Questions about testing strategies are welcome!
Description
The project lacks automated testing. Adding unit tests will improve code reliability and make future contributions safer.
What needs to be done:
tests/directorysetup_database()log_attempt()extract_message()wifi_login()(with mocked requests)view_logs()Expected outcome:
Comprehensive test coverage with CI/CD integration.
Open for discussions! Questions about testing strategies are welcome!