kopia lustrzana https://github.com/wagtail/wagtail
Removed test that's causing issues on Travis
rodzic
9713250c42
commit
ce1aff2989
|
@ -677,26 +677,3 @@ class TestIssue756(TestCase):
|
|||
|
||||
# Check that latest_revision_created_at is still set
|
||||
self.assertIsNotNone(Page.objects.get(id=1).latest_revision_created_at)
|
||||
|
||||
|
||||
class TestPageProxy(TestCase):
|
||||
def test_page_proxy(self):
|
||||
from django.apps import apps
|
||||
wagtailcore_models = apps.all_models['wagtailcore'].copy()
|
||||
|
||||
try:
|
||||
# See #1265
|
||||
# Proxy models can sometimes return None from their _meta.get_fields method
|
||||
# This caused the check method to break as it didn't expect this
|
||||
class PageProxy(Page):
|
||||
class Meta:
|
||||
proxy = True
|
||||
app_label = 'wagtailcore'
|
||||
|
||||
# Shouldn't raise an error
|
||||
PageProxy.check()
|
||||
finally:
|
||||
# Django registers models as they're initialised
|
||||
# Unregister PageProxy to prevent breaking the migrations test
|
||||
apps.all_models['wagtailcore'] = wagtailcore_models
|
||||
apps.clear_cache()
|
||||
|
|
Ładowanie…
Reference in New Issue