Skip to content

Commit

Permalink
test: about issue #123 test case.
Browse files Browse the repository at this point in the history
Signed-off-by: vvanglro <[email protected]>
  • Loading branch information
vvanglro committed Jan 17, 2024
1 parent f85273b commit 95d37a3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/metaclass/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ class Meta:
registry = models


class Address(saffier.Model):
# issues #123
customize_id = saffier.IntegerField(primary_key=True)
name = saffier.CharField(max_length=100)

class Meta:
registry = models


@pytest.fixture(autouse=True, scope="module")
async def create_test_database():
await models.create_all()
Expand Down

0 comments on commit 95d37a3

Please sign in to comment.