From 8ae107ffe4a27068953b825a4cefcaa1fb707d87 Mon Sep 17 00:00:00 2001 From: Kasper Brandt Date: Thu, 12 May 2016 14:14:20 +0200 Subject: [PATCH] [#2170] Delete useless model tests --- akvo/rsr/tests/models/__init__.py | 0 akvo/rsr/tests/models/test_benchmark.py | 35 ------------------------- 2 files changed, 35 deletions(-) delete mode 100644 akvo/rsr/tests/models/__init__.py delete mode 100644 akvo/rsr/tests/models/test_benchmark.py diff --git a/akvo/rsr/tests/models/__init__.py b/akvo/rsr/tests/models/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/akvo/rsr/tests/models/test_benchmark.py b/akvo/rsr/tests/models/test_benchmark.py deleted file mode 100644 index c779af9a01..0000000000 --- a/akvo/rsr/tests/models/test_benchmark.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -Akvo RSR is covered by the GNU Affero General Public License. - -See more details in the license.txt file located at the root folder of the Akvo RSR module. -For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. -""" - -from django.test import TestCase -from akvo.rsr.models import Benchmarkname - - -class BenchmarknameTestCase(TestCase): - - """Tests the Benchmarkname model.""" - - def setUp(self): - """Create two benchmarkname objects.""" - # Create test objects - Benchmarkname.objects.create(name="Benchmarkname1") - Benchmarkname.objects.create(name="Benchmarkname2", order=2) - # Store for later use - self.bn1 = Benchmarkname.objects.get(name="Benchmarkname1") - self.bn2 = Benchmarkname.objects.get(name="Benchmarkname2") - - def test_name(self): - """Test the name & the unicode method.""" - self.assertEqual(self.bn1.name, "Benchmarkname1") - self.assertEqual("{}".format(self.bn2), "Benchmarkname2") - - def test_order(self): - """Test the order field.""" - self.assertEqual(self.bn1.order, 0) - self.assertEqual(self.bn2.order, 2)