Skip to content

Commit d667a6d

Browse files
committed
Fix codacy issue
1 parent 8b21980 commit d667a6d

File tree

2 files changed

+117
-110
lines changed

2 files changed

+117
-110
lines changed

tests/test_table_name.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ class Meta:
4848
table = "foo"
4949
db_table = "not_foo"
5050

51+
class Foo(Model):
52+
class Meta:
53+
table = "foo"
54+
db_table = "foo"
55+
56+
assert Foo._meta.db_table == "foo"
57+
5158
async def test_table_description_conflict(self):
5259
with pytest.raises(ConfigurationError):
5360

0 commit comments

Comments
 (0)