FastAPI unit test returns 422
FastAPI unit test returns 422 Question: I am new to python and FastAPI and writing some test code for FastAPI endpoints. I have the following function for unit testing, but when I run it I get back status code 422. Not sure what I am doing wrong: def test_create_event(self): my_date = datetime.date(2023, 6, 15) data …