Clean up the tests

Add tests for __all__ public api definition
Rename test modules for consistency
This commit is contained in:
2023-05-04 14:50:02 -04:00
parent 0d1c642871
commit 480e3f3875
6 changed files with 39 additions and 0 deletions

View File

@@ -8,6 +8,15 @@ import peewee_plus
from .fixtures import fakedb
def test_public_api():
"""Test that the public API components are exposed via ``__all__``"""
assert peewee_plus.calc_batch_size.__name__ in peewee_plus.__all__
assert peewee_plus.flat_transaction.__name__ in peewee_plus.__all__
assert "SQLITE_DEFAULT_VARIABLE_LIMIT" in peewee_plus.__all__
assert "SQLITE_DEFAULT_PRAGMAS" in peewee_plus.__all__
def test_sqlite(fakedb):
"""Test the calculation of batch sizes on SQLite"""