From d1df5a0c89afaf67e40a5808dfa82aa915696256 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 1 Oct 2020 16:21:47 +0200 Subject: [PATCH] tests: mark concurrency test as slow --- tests/test_concurrency.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 7f5d6f9a8..4bfe92777 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -14,19 +14,20 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import threading + +import pytest + from django.db import connection from authentic2.models import Attribute, AttributeValue -import threading - +@pytest.mark.slow def test_attribute_value_uniqueness(migrations, transactional_db, simple_user, concurrency): - #from django.db.transaction import set_autocommit - # disabled default attributes + # disable default attributes Attribute.objects.update(disabled=True) - #set_autocommit(True) acount = Attribute.objects.count() single_at = Attribute.objects.create(