Skip to content

Instantly share code, notes, and snippets.

@jlward
Created February 3, 2015 17:29
Show Gist options
  • Save jlward/4d21b85f49ec4a9acd43 to your computer and use it in GitHub Desktop.
Save jlward/4d21b85f49ec4a9acd43 to your computer and use it in GitHub Desktop.
nosedjango bleed-through
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