Skip to content

Commit

Permalink
Fix errors reported in quality
Browse files Browse the repository at this point in the history
  • Loading branch information
tpazderka committed Oct 15, 2024
1 parent 829ee11 commit 3b1931b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
17 changes: 0 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,10 @@
from io import open

from setuptools import setup
from setuptools.command.test import test as TestCommand

__author__ = 'rohe0002'


class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True

def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest

errno = pytest.main(self.test_args)
sys.exit(errno)


tests_requires = ['responses', 'testfixtures', 'pytest', 'freezegun']

with open('src/oic/__init__.py', 'r') as fd:
Expand Down Expand Up @@ -93,8 +78,6 @@ def run_tests(self):
"defusedxml",
'typing_extensions; python_version<"3.8"',
],
tests_require=tests_requires,
long_description_content_type="text/x-rst",
zip_safe=False,
cmdclass={'test': PyTest},
)
4 changes: 2 additions & 2 deletions src/oic/oic/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ def do_client_registration(self, request, client_id, ignore=None):

@staticmethod
def verify_redirect_uris(registration_request):
verified_redirect_uris = []
verified_redirect_uris: List[Tuple[str, Optional[Dict[str, List[str]]]]] = []
try:
client_type = registration_request["application_type"]
except KeyError: # default
Expand Down Expand Up @@ -1349,7 +1349,7 @@ def verify_redirect_uris(registration_request):

def _verify_post_logout_uri(self, request):
"""Verify correct format of post_logout_redirect_uris."""
plruri = []
plruri: List[Tuple[str, Optional[Dict[str, List[str]]]]] = []
for uri in request["post_logout_redirect_uris"]:
part = urlparse(uri)
if part.fragment:
Expand Down

0 comments on commit 3b1931b

Please sign in to comment.