From 0951c0333f4fa57aefe7ee742a87e4200c9a0a84 Mon Sep 17 00:00:00 2001 From: baseplate-admin <61817579+baseplate-admin@users.noreply.github.com> Date: Fri, 23 Feb 2024 17:31:46 +0600 Subject: [PATCH] add --- tests/test_limits.py | 6 ++++++ tests/test_model.py | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 tests/test_limits.py diff --git a/tests/test_limits.py b/tests/test_limits.py new file mode 100644 index 0000000..0678f32 --- /dev/null +++ b/tests/test_limits.py @@ -0,0 +1,6 @@ +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) diff --git a/tests/test_model.py b/tests/test_model.py index 99a1e49..7bc9d10 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -261,6 +261,3 @@ def test_slicing(db): assert qs[:3].count() == 3 -def test_automatic_name_creation(): - for i in range(0, 2_538_557_185_841_324_496): - Taxonomy.objects.create_child(name=i)