aces / Loris-MRI

The set of scripts that preprocess and insert MRI data into the database.
10 stars 51 forks source link

Database unit tests proof-of-concept #1188

Closed maximemulder closed 2 months ago

maximemulder commented 2 months ago

This is a proof-of-concept for unit tests with SQLAlchemy, which is used to serve as an example to discuss with approach to use for unit tests that involve the database: . The question is whether to use this approach for unit tests that involve the database (create minimal in-memory databases), or use Raisinbread instead.

Approach 1: Use Raisinbread

Pros:

Cons:

Approach 2: Use in-memory minimal databases (this PR)

Pros:

Cons: