File: Remove-test_should_be_used_for_nullbooleanfield.patch

package info (click to toggle)
django-tables 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,764 kB
  • sloc: python: 7,152; makefile: 132; sh: 74
file content (36 lines) | stat: -rw-r--r-- 1,304 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Thomas Goirand <zigo@debian.org>
Date: Sat, 21 Aug 2021 19:10:01 +0200
Subject: Remove test_should_be_used_for_nullbooleanfield

Forwarded: not-needed
Last-Update: 2019-08-12
---
 tests/columns/test_booleancolumn.py | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/tests/columns/test_booleancolumn.py b/tests/columns/test_booleancolumn.py
index a61c9a9..e8b792a 100644
--- a/tests/columns/test_booleancolumn.py
+++ b/tests/columns/test_booleancolumn.py
@@ -46,21 +46,6 @@ class BooleanColumnTest(TestCase):
         self.assertEqual(type(column), tables.BooleanColumn)
         self.assertEqual(column.empty_values, (None, ""))
 
-    def test_should_be_used_for_nullbooleanfield(self):
-        class NullBoolModel(models.Model):
-            field = models.NullBooleanField()
-
-            class Meta:
-                app_label = "django_tables2_test"
-
-        class Table(tables.Table):
-            class Meta:
-                model = NullBoolModel
-
-        column = Table.base_columns["field"]
-        self.assertEqual(type(column), tables.BooleanColumn)
-        self.assertNotEqual(column.empty_values, ())
-
     def test_treat_none_different_from_false(self):
         class Table(tables.Table):
             col = tables.BooleanColumn(null=True, default="---")