#197 Clean Up Unit Tests: Stage content in the "in memory" SQLite database instead of using mocks
Closed 7 years ago Opened 7 years ago by mprahl.

Currently, unit tests for the scheduler involve a lot of different mocks. This complicates the tests, and reduces the amount of code that is actually tested (e.g. the database queries aren't tested). Instead of this, a similar approach should be taken as the frontend, where an "in memory" SQLite database is used with staged content to test functionality. Ideally, the only mocks needed in the scheduler's tests should be Koji (and other builders).


FYI, this should be done only for the scheduler tests.

Other tests already used mocked sqlite data.

@mprahl changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata