Created
February 3, 2015 17:29
-
-
Save jlward/4d21b85f49ec4a9acd43 to your computer and use it in GitHub Desktop.
nosedjango bleed-through
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.test import TestCase, TransactionTestCase | |
from pstat.document_control.models import Document | |
class AAATestCase(TransactionTestCase): | |
fixtures = [ | |
'test_customers.yaml', | |
'test_tenants.yaml', | |
'test_blocs.yaml', | |
'test_document_settings.json', | |
'test_tenant_settings.json', | |
'test_implementations.json', | |
'test_users.json', | |
'test_categories.json', | |
'test_approvals.json', | |
'test_documents_search_priority.json', | |
] | |
def test(self): | |
self.assertEqual(Document.objects.count(), 42) | |
class BBBTestCase(TestCase): | |
fixtures = [ | |
'test_customers.yaml', | |
'test_tenants.yaml', | |
'test_blocs.yaml', | |
'test_document_settings.json', | |
'test_tenant_settings.json', | |
'test_implementations.json', | |
'test_users.json', | |
'test_categories.json', | |
'test_approvals.json', | |
'test_documents.json', | |
] | |
def test(self): | |
self.assertEqual(Document.objects.count(), 18) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment