mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
Remove the django_db mark from TransactionTestCase classes
pytest-django's documentation indicates that it isn't necessary, and it turns out in Django 2.0+ that this double application of the transaction machinations was causing the Django ContentType table to lose its items.
This commit is contained in:
@@ -7,7 +7,6 @@ from awx.main.access import UserAccess, RoleAccess, TeamAccess
|
||||
from awx.main.models import User, Organization, Inventory
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
class TestSysAuditorTransactional(TransactionTestCase):
|
||||
def rando(self):
|
||||
return User.objects.create(username='rando', password='rando', email='rando@com.com')
|
||||
|
||||
Reference in New Issue
Block a user