We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64ea88 commit e9c3fffCopy full SHA for e9c3fff
tests/demoapp/demo/admin.py
@@ -96,6 +96,10 @@ def disabled(self, request):
96
def enabled(self, request):
97
pass
98
99
+ @link(href="https://www.google.com/", visible=lambda btn: True)
100
+ def invisible(self, button):
101
+ button.visible = False
102
+
103
@button()
104
def error_message(self, request):
105
try:
tests/test_admin.py
@@ -0,0 +1,7 @@
1
+from django.urls import reverse
2
3
4
+def test_admin(app, admin_user):
5
+ url = reverse('admin:demo_demomodel1_changelist')
6
+ res = app.get(url, user=admin_user)
7
+ assert res.status_code == 200
0 commit comments