Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdminActions causes TransactionTestCase to break testing #145

Closed
PetrDlouhy opened this issue May 6, 2018 · 1 comment
Closed

AdminActions causes TransactionTestCase to break testing #145

PetrDlouhy opened this issue May 6, 2018 · 1 comment

Comments

@PetrDlouhy
Copy link
Collaborator

The new develop branch causes tests of other application to fail. After the commit a128eb6 the use of TransactionTestCase, even as simple as:

class TestIsLibero(TransactionTestCase):
    def test_true(self):
        self.assertTrue(True)

causes following errors of other tests:

______________________________ test_permission_needed[mass_update] ______________________________
tests/test_permissions.py:28: in test_permission_needed
    with user_grant_permission(admin, ['demo.change_demomodel']):
tests/utils.py:96: in __enter__
    self.group = get_group(permissions=self.permissions or [])
tests/utils.py:78: in get_group
    model__iexact=model_name)
.tox/d20-py34/lib/python3.4/site-packages/django/db/models/manager.py:82: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
.tox/d20-py34/lib/python3.4/site-packages/django/db/models/query.py:403: in get
    self.model._meta.object_name
E   django.contrib.contenttypes.models.DoesNotExist: ContentType matching query does not exist.

@domdinicola
Copy link
Collaborator

now it's not failing anymore #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants