JulianFP / project-W

A self-hostable platform on which users can create transcripts of their audio files (speech-to-text) using Whisper AI
GNU Affero General Public License v3.0
2 stars 0 forks source link

Increase test coverage of backend #16

Open JulianFP opened 6 months ago

JulianFP commented 6 months ago

A good test coverage for the backend would be ~90%. Some pieces of code like the communication with the runner is hard to test, however many of the individual components of the runner-manager.py and model.py modules could be tested (e.g. the priority queue, database usage, etc.) and the runner could also be spoofed to some extend by using flasks client object in test cases (e.g. heartbeats, failed state, etc.).