Write tests for Insertion/Searching the database
In the last sprint two tickets (#20 (closed) and #9 (closed)) allowed for the User to Insert quotes into the database and search within the database respectively. This ticket will create tests to cover the implementation of these tickets.
Acceptance criteria:
-
A test to assert a new quote can be added to the database -
A test to assert an author with disallowed characters is not inserted into the database -
A test to assert an author with a - or a ' in their name can be added to the database -
A test to assert the search accesses the database -
A test to assert a search will return values when given a valid person name -
A test to assert a search will return values when given a valid quote section
Edited by Darcey Haddow