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 f895766 commit ecd4af1Copy full SHA for ecd4af1
oauth2_provider/tests/test_models.py
@@ -60,3 +60,15 @@ def test_grant_implicit_redirect_uris(self):
60
)
61
62
self.assertRaises(ValidationError, app.full_clean)
63
+
64
+ def test_str(self):
65
+ app = Application(
66
+ redirect_uris="",
67
+ user=self.user,
68
+ client_type=Application.CLIENT_CONFIDENTIAL,
69
+ authorization_grant_type=Application.GRANT_IMPLICIT,
70
+ )
71
+ self.assertEqual("%s" % app, app.client_id)
72
73
+ app.name = "test_app"
74
+ self.assertEqual("%s" % app, "test_app")
0 commit comments