tests: mark concurrency test as slow

This commit is contained in:
Benjamin Dauvergne 2020-10-01 16:21:47 +02:00
parent e6b2e5dbf4
commit d1df5a0c89
1 changed files with 6 additions and 5 deletions

View File

@ -14,19 +14,20 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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(