diff --git a/tests/test_label_generation.py b/tests/test_label_generation.py new file mode 100644 index 0000000..66c42f4 --- /dev/null +++ b/tests/test_label_generation.py @@ -0,0 +1,6 @@ +from django_ltree.paths import PathGenerator + + +def test_label_generation(): + assert PathGenerator.guess_the_label_size(62, 62) == 2 + assert PathGenerator.guess_the_label_size(0, 62) == 1 diff --git a/tests/test_limits.py b/tests/test_limits.py deleted file mode 100644 index 0678f32..0000000 --- a/tests/test_limits.py +++ /dev/null @@ -1,6 +0,0 @@ -from taxonomy.models import Taxonomy - - -def test_automatic_name_creation(): - for i in range(0, 2_538_557_185_841_324_496): - Taxonomy.objects.create_child(name=i)