SerraKD / cine-frights

Cine Frights Is a horror movie review blog created for CI Portfolio Project 4.
https://cine-frights-ed31240ece67.herokuapp.com/
0 stars 2 forks source link

Epic 5. Automated testing with Django #17

Open SerraKD opened 4 months ago

SerraKD commented 4 months ago

Epic Description: Automated testing to check projects functionality.

Tasks:

SerraKD commented 2 months ago

I tried to built few tests in movies app and films app for forms and views, whenever i run the tests i am getting below error.

"Found 1 test(s).
Creating test database for alias 'default'...
Traceback (most recent call last):

django.db.utils.OperationalError: near "None": syntax error"

I believe the error is caused by movies.0004_alter_movie_our_rating migration. Need to delete existing migrations and make migrations again.

Image

Explanation of migration '0004_alter_movie_our_rating' : I added emoji picker widget to add emojis for movie ratings as admin, but i decided to not use the widget because i could add emojis to text field without any extra widgets. Image

At this point of the project, the deployed site works without any issues, i dont have any errors in the workspace. I dont want to alter the migrations because it shows the development process clearly and i dont want to cause any unexpected errors.

I really wanted to include basic automated testing to improve my skills, so i will be adding it to the project after submission and getting the grade.