Skip to content

Commit 511170a

Browse files
committed
adding test for varchar length
1 parent c6c1108 commit 511170a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/columns/test_varchar.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from unittest import TestCase
2+
3+
from piccolo.table import Table
4+
from piccolo.columns.column_types import Varchar
5+
6+
7+
class MyTable(Table):
8+
name = Varchar(length=10)
9+
10+
11+
class TestVarchar(TestCase):
12+
def test_length(self):
13+
MyTable.create().run_sync()
14+

0 commit comments

Comments
 (0)