| Conditions | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import json |
||
| 6 | def populate_test_db(): |
||
| 7 | """ |
||
| 8 | Adds records to an empty test database |
||
| 9 | """ |
||
| 10 | #cat = Category.objects.create(cat_name='Widgets') |
||
| 11 | #cat_inactive = Category.objects.create(cat_name='Inactive Category', |
||
| 12 | # cat_active=False) |
||
| 13 | #thing1 = Thing.objects.create(category=cat, |
||
| 14 | # thing_desc="Test Thing", |
||
| 15 | # thing_model="XYZ1234", |
||
| 16 | # thing_brand="Brand X") |
||
| 17 | |||
| 18 | User.objects.create_user( |
||
| 19 | username='admin', |
||
| 20 | email='[email protected]', |
||
| 21 | password='secretpassword') |
||
| 22 | |||
| 40 |