Skip to content

Add unit tests for helper functions #269

@Disane87

Description

@Disane87

🎯 Description

Add unit tests for helper functions in the custom_components/spoolman/helpers/ directory to improve code coverage.

💡 Hints

  • Test files go in tests/ directory
  • Look at existing test files like tests/test_sensor.py for patterns
  • Focus on helpers/ directory functions
  • Use pytest framework

✅ Acceptance Criteria

  • Add tests for at least 2-3 helper functions
  • Tests cover both success and error cases
  • All tests pass: pytest tests/
  • Code coverage increases

🚀 Getting Started

  1. Fork the repository
  2. Set up development environment (see CONTRIBUTING.md)
  3. Look at custom_components/spoolman/helpers/
  4. Create corresponding test files in tests/
  5. Run tests locally
  6. Submit PR to dev branch

📚 Resources

  • Pytest Documentation
  • Existing test examples in tests/ directory
  • CONTRIBUTING.md for development setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    Home AssistantStuff that is related to home assistant and the integration of servicesarea: sensorsRelated to sensor entitiesgood first issueGood for newcomerspythonPull requests that update Python code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions