Commit Graph

32 Commits

Author SHA1 Message Date
Colin Goutte 3897771ecb Pagination works from begining to end 2023-08-28 15:58:42 +02:00
Colin Goutte 8ef89ecc85 GREEN: Had to fiddle a bit with schemas and typing 2023-08-28 15:58:42 +02:00
Colin Goutte a7975cf164 First and last pages pagination test 2023-08-28 15:58:42 +02:00
Colin Goutte f813dcc49f WIP 2023-08-28 15:58:42 +02:00
Colin Goutte 32c97664c6 First shot of paginaiton seems ok 2023-08-28 15:58:42 +02:00
Colin Goutte 2a4ac4961c RED: write test to query paginated view 2023-08-28 15:58:42 +02:00
Colin Goutte 1565863b56 Test to search for a movie on crud 2023-08-27 21:04:52 +02:00
Colin Goutte 0c1bdba85f Add a test for count 2023-08-27 18:22:29 +02:00
Colin Goutte daec71fe70 Green: adapt output schema for 'movie' and 'count' 2023-08-27 18:17:17 +02:00
Colin Goutte 4acf79a0dd RED: Check expected output format for '/movies/' route 2023-08-27 17:59:05 +02:00
Colin Goutte 94ad5b28e5 Sample input for the whole test 2023-08-27 16:16:36 +02:00
Colin Goutte e52034c9e7 Update aliases for database management 2023-08-27 16:03:02 +02:00
Colin Goutte 88b12f1433 Sample test for import 2023-08-27 15:04:23 +02:00
Colin Goutte bbb32d55c2 Green: test work, fix import script too 2023-08-27 13:31:08 +02:00
Colin Goutte 8c9a4d5295 Fix type casting, now we have an unexpected succes :) 2023-08-27 13:28:46 +02:00
Colin Goutte 130c4cb7b2 RED: Genre was poorly serialized, write test to fix this 2023-08-27 13:21:43 +02:00
Colin Goutte b410fa9bc8 Shorly update description 2023-08-27 12:48:28 +02:00
Colin Goutte 4543f2f0d7 cleanup: make use of pydatic schemas for create 2023-08-27 12:48:28 +02:00
Colin Goutte 68e11a3275 RED: Cannot bind list to string for genres 2023-08-26 22:31:55 +02:00
Colin Goutte e565b445ff green: actually delete movies 2023-08-26 17:52:39 +02:00
Colin Goutte 49c1b79329 RED: Test deletion 2023-08-26 17:36:43 +02:00
Colin Goutte 6bbea876a0 cosmit: intresting test first 2023-08-26 17:36:22 +02:00
Colin Goutte 6e77545ef9 Refactor: unittest like 2023-08-26 17:24:58 +02:00
Colin Goutte c058c7513c RED: test for message and status_code 2023-08-26 17:19:32 +02:00
Colin Goutte ec2f661a49 RED: Add schema, fail on purpose to check 2023-08-25 23:10:07 +02:00
Colin Goutte a030fb0b4f Green: we can get simple attributes back and forth 2023-08-25 22:58:09 +02:00
Colin Goutte 504008b75b RED: For now we only test primitive type to move soon to pydantic 2023-08-25 22:41:44 +02:00
Colin Goutte b309418af4 RED: not storing values :/ 2023-08-25 22:25:26 +02:00
Colin Goutte 1fd9f7a9a6 RED: 404 and schema test fail 2023-08-25 22:06:35 +02:00
Colin Goutte 0a5857ead2 Base implem of create and restore db 2023-08-25 21:20:09 +02:00
Colin Goutte bcee4fd482 Screwed up with git 2023-08-25 15:33:08 +02:00
Colin Goutte 6dce239b1e DB fixes 2023-08-25 14:23:02 +02:00