latest changes
This commit is contained in:
@@ -52,7 +52,9 @@ class OAuthMcpTests(TestCase):
|
||||
self.assertIsNone(_verified(secret))
|
||||
|
||||
def test_discovery_and_project_access(self):
|
||||
self.assertEqual(self.client.get('/.well-known/oauth-authorization-server').status_code, 200)
|
||||
discovery = self.client.get('/.well-known/oauth-authorization-server')
|
||||
self.assertEqual(discovery.status_code, 200)
|
||||
self.assertIn('none', discovery.json()['token_endpoint_auth_methods_supported'])
|
||||
project = create_project(self.user, name='Private')
|
||||
self.assertEqual(self.client.get(f'/projects/{project.pk}/').status_code, 302)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user