From 4dac410550eb9d501093645d6d6671c4b32bc7ae Mon Sep 17 00:00:00 2001 From: mike seibel Date: Tue, 7 Jan 2025 11:01:27 -0800 Subject: [PATCH 1/3] student role test too broad --- blti/models/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blti/models/base.py b/blti/models/base.py index edc5b44..72dd25a 100644 --- a/blti/models/base.py +++ b/blti/models/base.py @@ -110,6 +110,6 @@ def _claim(self, claim): class StudentRole(AbstractRole): - _common_roles = ("Learner", "Member") - _institution_roles = ("Student", "Learner", "Member") - _context_roles = ("Learner", "Member") + _common_roles = ("Learner") + _institution_roles = ("Student", "Learner") + _context_roles = ("Learner") From b830feb39817d8e815e85fce76e42f3191183f52 Mon Sep 17 00:00:00 2001 From: mike seibel Date: Tue, 7 Jan 2025 11:20:18 -0800 Subject: [PATCH 2/3] license date update --- blti/__init__.py | 2 +- blti/config.py | 2 +- blti/exceptions.py | 2 +- blti/management/commands/generate_credentials.py | 2 +- blti/middleware.py | 2 +- blti/mock_data.py | 2 +- blti/models/__init__.py | 2 +- blti/models/base.py | 2 +- blti/models/canvas.py | 2 +- blti/performance.py | 2 +- blti/roles.py | 2 +- blti/runtests.py | 6 +++--- blti/tests/settings.py | 2 +- blti/tests/test_blti_1p1.py | 2 +- blti/tests/test_lti_1p3.py | 2 +- blti/tests/test_views.py | 2 +- blti/tests/urls.py | 2 +- blti/urls.py | 2 +- blti/validators.py | 2 +- blti/views/__init__.py | 2 +- blti/views/base.py | 2 +- blti/views/develop.py | 2 +- blti/views/jwks.py | 2 +- blti/views/launch.py | 2 +- blti/views/login.py | 2 +- blti/views/raw.py | 2 +- blti/views/rest_dispatch.py | 2 +- 27 files changed, 29 insertions(+), 29 deletions(-) diff --git a/blti/__init__.py b/blti/__init__.py index 215df39..ae611cb 100644 --- a/blti/__init__.py +++ b/blti/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/config.py b/blti/config.py index 2efc85d..07d4535 100644 --- a/blti/config.py +++ b/blti/config.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/exceptions.py b/blti/exceptions.py index 1b62125..00713c0 100644 --- a/blti/exceptions.py +++ b/blti/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/management/commands/generate_credentials.py b/blti/management/commands/generate_credentials.py index fde71e7..df29414 100644 --- a/blti/management/commands/generate_credentials.py +++ b/blti/management/commands/generate_credentials.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.core.management.base import BaseCommand, CommandError diff --git a/blti/middleware.py b/blti/middleware.py index 8817a87..497db29 100644 --- a/blti/middleware.py +++ b/blti/middleware.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/mock_data.py b/blti/mock_data.py index b5a7cf3..58ec9d7 100644 --- a/blti/mock_data.py +++ b/blti/mock_data.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf import settings diff --git a/blti/models/__init__.py b/blti/models/__init__.py index 8d1abe3..07de698 100644 --- a/blti/models/__init__.py +++ b/blti/models/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from .canvas import CanvasData diff --git a/blti/models/base.py b/blti/models/base.py index 72dd25a..818ce24 100644 --- a/blti/models/base.py +++ b/blti/models/base.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.db import models diff --git a/blti/models/canvas.py b/blti/models/canvas.py index c1db17a..6f84e1b 100644 --- a/blti/models/canvas.py +++ b/blti/models/canvas.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/performance.py b/blti/performance.py index 729fabd..69305aa 100644 --- a/blti/performance.py +++ b/blti/performance.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/roles.py b/blti/roles.py index bce0634..b2f1cbe 100644 --- a/blti/roles.py +++ b/blti/roles.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/runtests.py b/blti/runtests.py index 33b7ff5..1cacdbd 100755 --- a/blti/runtests.py +++ b/blti/runtests.py @@ -1,8 +1,8 @@ -#!/usr/bin/env python - -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 +#!/usr/bin/env python + import django from django.test.utils import get_runner from django.conf import settings diff --git a/blti/tests/settings.py b/blti/tests/settings.py index 7ebd7e7..41b1ad5 100644 --- a/blti/tests/settings.py +++ b/blti/tests/settings.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 SECRET_KEY = 'fake_key' diff --git a/blti/tests/test_blti_1p1.py b/blti/tests/test_blti_1p1.py index 445476b..73e7920 100644 --- a/blti/tests/test_blti_1p1.py +++ b/blti/tests/test_blti_1p1.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/tests/test_lti_1p3.py b/blti/tests/test_lti_1p3.py index 69fed3b..8c178af 100644 --- a/blti/tests/test_lti_1p3.py +++ b/blti/tests/test_lti_1p3.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/tests/test_views.py b/blti/tests/test_views.py index dfecef1..207cdd9 100644 --- a/blti/tests/test_views.py +++ b/blti/tests/test_views.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/tests/urls.py b/blti/tests/urls.py index 1bfab04..e91eb3f 100644 --- a/blti/tests/urls.py +++ b/blti/tests/urls.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf.urls import include diff --git a/blti/urls.py b/blti/urls.py index 84f2e26..ad89be4 100644 --- a/blti/urls.py +++ b/blti/urls.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/validators.py b/blti/validators.py index 74c5646..7b8ff9a 100644 --- a/blti/validators.py +++ b/blti/validators.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/views/__init__.py b/blti/views/__init__.py index f406016..3ea46b5 100644 --- a/blti/views/__init__.py +++ b/blti/views/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/views/base.py b/blti/views/base.py index 6cfb41c..c7cb67c 100644 --- a/blti/views/base.py +++ b/blti/views/base.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.views.generic.base import TemplateView diff --git a/blti/views/develop.py b/blti/views/develop.py index 59cfe6d..d8ec296 100644 --- a/blti/views/develop.py +++ b/blti/views/develop.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from blti.mock_data import Mock1p3Data diff --git a/blti/views/jwks.py b/blti/views/jwks.py index c904847..365dc9f 100644 --- a/blti/views/jwks.py +++ b/blti/views/jwks.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.views.decorators.csrf import csrf_exempt diff --git a/blti/views/launch.py b/blti/views/launch.py index 18503c9..4df2f6e 100644 --- a/blti/views/launch.py +++ b/blti/views/launch.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/views/login.py b/blti/views/login.py index 334f043..76ca7d0 100644 --- a/blti/views/login.py +++ b/blti/views/login.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.views.decorators.csrf import csrf_exempt diff --git a/blti/views/raw.py b/blti/views/raw.py index 9f45cce..6d8bb30 100644 --- a/blti/views/raw.py +++ b/blti/views/raw.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/blti/views/rest_dispatch.py b/blti/views/rest_dispatch.py index 312aef2..aaf6b90 100644 --- a/blti/views/rest_dispatch.py +++ b/blti/views/rest_dispatch.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 From 2fa8472e2519d49f3609958d14ba337321872747 Mon Sep 17 00:00:00 2001 From: mike seibel Date: Tue, 7 Jan 2025 11:23:20 -0800 Subject: [PATCH 3/3] pycodestyle --- blti/runtests.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/blti/runtests.py b/blti/runtests.py index 1cacdbd..8580beb 100755 --- a/blti/runtests.py +++ b/blti/runtests.py @@ -1,8 +1,6 @@ # Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 -#!/usr/bin/env python - import django from django.test.utils import get_runner from django.conf import settings