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
a08c18d51d
Merge branch 'refactor_pydantic'
2023-08-27 12:48:28 +02:00
Colin Goutte
b410fa9bc8
Shorly update description
2023-08-27 12:48:28 +02:00
Colin Goutte
5c00c51b43
Refactor: Make use of pydantic schemas where possible
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
f88b8410bf
Add short useful alias for refactoring
2023-08-27 12:48:28 +02:00
Colin Goutte
6c60ffcfd2
Merge branch 'feature_34_api_endpoint'
2023-08-26 23:47:01 +02:00
Colin Goutte
0ac827b95c
Green: implement custom object for arrays, update is ok
2023-08-26 23:46:35 +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
8b8a1ed30a
Nicer scripts and directive foor databases
2023-08-26 17:20:54 +02:00
Colin Goutte
df1dbbbc18
Green: convert 422 to 400 on input errors
2023-08-26 17:20:32 +02:00
Colin Goutte
c058c7513c
RED: test for message and status_code
2023-08-26 17:19:32 +02:00
Colin Goutte
2a02a839b7
Candy: add test coverage
2023-08-25 23:28:03 +02:00
Colin Goutte
5ee4cb6041
Green: Remove custom schema adapter
...
Nice we have the releasse date we missed
2023-08-25 23:14:28 +02:00
Colin Goutte
17bf8bb645
Green
2023-08-25 23:11:29 +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
5039cd66aa
Green: ouput schema seems ok
2023-08-25 22:21:59 +02:00
Colin Goutte
e40df4886f
Implement 404 on missing id
2023-08-25 22:10:43 +02:00
Colin Goutte
1fd9f7a9a6
RED: 404 and schema test fail
2023-08-25 22:06:35 +02:00
Colin Goutte
73482bea56
Merge branch 'feature_3_3_database'
2023-08-25 21:24:46 +02:00
Colin Goutte
0a5857ead2
Base implem of create and restore db
2023-08-25 21:20:09 +02:00
Colin Goutte
e9f5b70a33
Merge branch 'attemp_check_name' into feature_3_3_database
2023-08-25 15:34:07 +02:00
Colin Goutte
bcee4fd482
Screwed up with git
2023-08-25 15:33:08 +02:00
Colin Goutte
5bb54cc9dc
Better directive for tests
2023-08-25 15:31:29 +02:00
Colin Goutte
a64ab9189e
Add pdbpp for dev
2023-08-25 15:12:38 +02:00
Colin Goutte
33ea9742b2
Add directiv in normal makefile for venv
2023-08-25 15:12:00 +02:00
Colin Goutte
faf4841016
GREEN: But this is really coding *against* the framework
...
This is noe the proper way to do it. FastAPI define schemas to do such
work.
The 'name' parameter was not passed (but seemed to work on live) and i
was looking for a database issue.
There might have been some colisions on import
However this show how to evolve from a mindset to another.
2023-08-25 15:11:32 +02:00
Colin Goutte
6dce239b1e
DB fixes
2023-08-25 14:23:02 +02:00
Colin Goutte
e8aaa18baa
accessing Orm throught test api does not seems to work, skip it for now
2023-08-25 12:40:36 +02:00
Colin Goutte
5f96a4b82a
RED: we still need to created the view
2023-08-25 12:10:37 +02:00
Colin Goutte
97cf596ea7
RED: Now fails with missing attribute
2023-08-25 12:05:35 +02:00
Colin Goutte
3721881813
RED: Fix import, still need to create proper database strcuture
2023-08-25 12:03:32 +02:00
Colin Goutte
8f465ccf4b
RED: Fix import database module
2023-08-25 11:57:49 +02:00
Colin Goutte
7b6c26dbdc
RED: First shot of testing
2023-08-25 11:54:37 +02:00
Colin Goutte
c1386d0d35
Merge branch 'feature_3_2_api'
2023-08-25 11:42:09 +02:00
Colin Goutte
641ded12ad
Add tooling and doc for our first usecase
2023-08-25 11:11:29 +02:00
Colin Goutte
49b142e306
Refactor: only one instantiation of webdriver
2023-08-25 10:50:37 +02:00
Colin Goutte
41bdbeebc6
test that API has a swagger UI
2023-08-25 10:47:46 +02:00
Colin Goutte
89a6b4bead
Add doc on functional testing tools
2023-08-25 10:36:37 +02:00
Colin Goutte
4462b7c6fb
Dev server automaticaly restarts and functional tests are green
2023-08-25 10:34:43 +02:00
Colin Goutte
fd3f14a7b8
First test for homepage
2023-08-25 10:18:42 +02:00
Colin Goutte
d48b964e7a
Sphinx has an install issue to we skip it for now
2023-08-25 09:59:34 +02:00