Skip to content

Commit

Permalink
Merge branch 'main' into pr-sanitize-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht authored Oct 30, 2023
2 parents 184b344 + a704cd3 commit 0f6a42b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pywps/ext_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class instance.
for m in obj.metadata:
if isinstance(m, Metadata):
title, href = m.title, m.href
elif type(m) == dict:
elif isinstance(m, dict):
title, href = m['title'], m['href']
else:
title, href = None, None
Expand Down
2 changes: 1 addition & 1 deletion pywps/inout/literaltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def make_allowedvalues(allowed_values):
# value is an instance of one of the allowed classes
new_allowedvalues.append(value)

elif type(value) == tuple or type(value) == list:
elif isinstance(value, (tuple, list)):
spacing = None
if len(value) == 2:
minval = value[0]
Expand Down
3 changes: 2 additions & 1 deletion tests/test_assync.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from processes import Sleep
from owslib.wps import WPSExecution
from pathlib import Path
from tempfile import TemporaryDirectory
from pywps import dblog

VERSION = "1.0.0"

Expand All @@ -25,7 +27,6 @@ def setUp(self) -> None:
# Running processes using the MultiProcessing scheduler and a file-based database
configuration.CONFIG.set('processing', 'mode', 'distributed')


def test_async(self):
client = client_for(Service(processes=[Sleep()]))
wps = WPSExecution()
Expand Down

0 comments on commit 0f6a42b

Please sign in to comment.