Unable to make a inventory_product_category link table from part-2
SaurabhBagade opened this issue · 1 comments
For some reason which I don't know I am unable to see and create the 'inventory_product_category' table in the database.
So that's why I fail in 2 tests (screenshots of the terminal below).
-
I fail in the 'test_inventory_db_product_insert_data' test in the 'assert result_product_category == 5' part where the categories should be 5 but as the 'inventory_product_category' table is not created it does not query properly and shows "result_product_category == 0"
-
Secondly, I fail in the "test_inventory_db_product_dbfixture" test as I am unable to query the product model in models.py from inventory. For this one, I am not sure where I am failing but I guess it's directly related to the 'inventory_product_category' table.
I have cross-checked all my code from the Github repo so I am pretty sure that there are no code issues. I have also provided the notepad copy of the terminal.
Please help me as I am unable to progress in the course
Terminal Copy of Code.txt
If anyone can figure out this issue would love to discuss it, but for now, I created a new project with a different venv so now all the tests work fine.
Thanks in advance.