KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have written tests for a Django project that i am working on, but one particular fixture fails to load. The fixture is generated using dumpdata and i havent fiddled with it at all. I can load the data using manage.py on that fixture without errors. I have verified that the data actually loaded using shell and querying the data. This is driving me nuts, any help would be much appreciated. Here is my test file (irrelevant portions removed): class ViewsFromUrls(TestCase): fixtures = [ 'centers/fixtures/test_data.json', 'intranet/fixtures/test_data.json', 'training/fixtures/test_data.json', #The one that fails to load ] def setUp(self): self.c = Client() self.c.login(username='USER', password='PASS') ... def test_ViewBatch(self): b = Batch.objects.all()[0].ticket_number response = self.c.get(reverse('training.views.view_batch', kwargs={'id':b})) self.assertTrue(response.status_code, 200) ...
Tags (comma-separated)
Save Edits
Cancel