Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] Fix evaluation of empty file names for file parameters
in test suite
  • Loading branch information
nyalldawson committed Aug 2, 2021
1 parent 729a748 commit bcf964a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/grassprovider/tests/AlgorithmsTestBase.py
Expand Up @@ -292,6 +292,9 @@ def filepath_from_param(self, param):
else:
path = param['name']

if not path:
return None

return self.uri_path_join(prefix, path)

def uri_path_join(self, prefix, filepath):
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -292,6 +292,9 @@ def filepath_from_param(self, param):
else:
path = param['name']

if not path:
return None

return self.uri_path_join(prefix, path)

def uri_path_join(self, prefix, filepath):
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/sagaprovider/tests/AlgorithmsTestBase.py
Expand Up @@ -292,6 +292,9 @@ def filepath_from_param(self, param):
else:
path = param['name']

if not path:
return None

return self.uri_path_join(prefix, path)

def uri_path_join(self, prefix, filepath):
Expand Down

0 comments on commit bcf964a

Please sign in to comment.