thechutrain / rc-coffee-chats

A service that matches community members for chats
MIT License
15 stars 7 forks source link

Clean up Sqlite statements and tests #82

Open thechutrain opened 5 years ago

thechutrain commented 5 years ago

Summary

Currently, each database test file creates a new file/database (each database in SQlite is mapped to a file). It would be more efficient and faster to just create one database and use transactions to never commit changes to the test database.

Motivation

The git hooks used for testing take a non-trivial amount of time. Tests can run quicker if we make a single database and rollback and transactions for each test

thechutrain commented 5 years ago

Todo:

Makes ORM refactor irrelevant: Closes Issue #14