GitHub URL I’m facing issues with three functions in my Betsy electronics project. Possible causes:
- Indentation errors.
- Missing imports.
- Syntax error.
File structure:
├── README.md
├── betsy.db
├── license.txt
├── main.py
├── models.py
└── test_data.py
Following functions are not populating the SQLite database and I’m unable to determine the cause:
ProductTag
User
UserProduct
I receive the following output:
Product 1 created: True
Product 2 created: True
Product 3 created: True
Product 4 created: True
Tag Electronics updated: True
Tag Apple updated: True
Tag Headphones updated: True
Tag Laptops updated: True
Test database created and populated successfully.
betsy.db
Test database created and populated successfully.
betsy.db
I ran tool for error handling:
- File: 'main.py'
see screenshot 1
- File: 'models.py'
see screenshot 2
When running the program I receive following output:
The creation of products ('Product 1', 'Product 2', 'Product 3', and 'Product 4') appears to be successful.
The update of tags ('Electronics', 'Apple', 'Headphones', and 'Laptops') in the database also show successful.