Skip to content

Commit

Permalink
Separates tests in several files.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Oct 20, 2014
1 parent 9ad5582 commit 0da4880
Show file tree
Hide file tree
Showing 9 changed files with 1,483 additions and 1,428 deletions.
1,427 changes: 0 additions & 1,427 deletions cachalot/tests.py

This file was deleted.

5 changes: 5 additions & 0 deletions cachalot/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .read import ReadTestCase
from .write import WriteTestCase
from .transaction import AtomicTestCase
from .thread_safety import ThreadSafetyTestCase
from .settings import SettingsTestCase
19 changes: 19 additions & 0 deletions cachalot/tests/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding: utf-8

from __future__ import unicode_literals

from django.conf import settings
from django.db.models import (
Model, CharField, ForeignKey, BooleanField, DateField, DateTimeField)


class Test(Model):
name = CharField(max_length=20)
owner = ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True)
public = BooleanField(default=False)
date = DateField(null=True, blank=True)
datetime = DateTimeField(null=True, blank=True)
permission = ForeignKey('auth.Permission', null=True, blank=True)

class Meta(object):
ordering = ('name',)

0 comments on commit 0da4880

Please sign in to comment.