Skip to content

Commit 0a8ab1d

Browse files
committed
added test for adding help_text to a column
1 parent 7e1a692 commit 0a8ab1d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/columns/test_base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,13 @@ def test_copy(self):
3939
self.assertNotEqual(
4040
id(column._meta.call_chain), id(new_column._meta.call_chain)
4141
)
42+
43+
44+
class TestHelpText(TestCase):
45+
def test_help_text(self):
46+
"""
47+
Test adding help text to a column.
48+
"""
49+
help_text = "This is some important help text for users."
50+
column = Varchar(help_text=help_text)
51+
self.assertTrue(column._meta.help_text == help_text)

0 commit comments

Comments
 (0)