Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:1-MinimalX
python-Django
fix-selenium-test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-selenium-test.patch of Package python-Django
Index: Django-2.2.8/tests/admin_inlines/tests.py =================================================================== --- Django-2.2.8.orig/tests/admin_inlines/tests.py +++ Django-2.2.8/tests/admin_inlines/tests.py @@ -1,5 +1,3 @@ -from selenium.common.exceptions import NoSuchElementException - from django.contrib.admin import ModelAdmin, TabularInline from django.contrib.admin.helpers import InlineAdminForm from django.contrib.admin.tests import AdminSeleniumTestCase @@ -1050,6 +1048,8 @@ class SeleniumTests(AdminSeleniumTestCas self.assertEqual(Profile.objects.all().count(), 3) def test_add_inline_link_absent_for_view_only_parent_model(self): + from selenium.common.exceptions import NoSuchElementException + user = User.objects.create_user('testing', password='password', is_staff=True) user.user_permissions.add( Permission.objects.get(codename='view_poll', content_type=ContentType.objects.get_for_model(Poll))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor