douglascdev / douglascdev/pypixelart

Add unit testing

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
23
Forks
3
PR merge metrics
No merged PRs in 30d

Description

The package currently relies completely on manual testing. Start using mocked tests:
- Mock `pygame` calls.
- If needed/desired, refactor any parts of the code that are unnecessarily coupled to make testing easier.
- Test the functions in the `utils.py` module.
- Test the methods in the `PyPixelArt` class, except `run_loop`(I don't think it's all that necessary to test it since it pretty much only calls `PyPixelArt` methods to work).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.