Skip to content

Commit

Permalink
django15 skiptest decorator no more used
Browse files Browse the repository at this point in the history
  • Loading branch information
romgar committed Sep 29, 2015
1 parent 11c2edb commit 77c2855
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/compat.py
@@ -1,6 +1,3 @@
import django
import unittest


def get_model_name(klass):
if hasattr(klass._meta, 'model_name'):
Expand All @@ -9,9 +6,3 @@ def get_model_name(klass):
model_name = klass._meta.module_name

return model_name


def skip_before_django_15(test):
if django.VERSION < (1, 5):
return unittest.skip('save dirty fields is not different that basic save() before django 1.5')(test)
return test

0 comments on commit 77c2855

Please sign in to comment.