Skip to content

Create Comprehensive Unit Tests #7

@01bps

Description

@01bps

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions