Skip to content

Commit

Permalink
Lint test_layout and run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
duckontheweb committed May 29, 2021
1 parent 57fa460 commit 9ddc7a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ jobs:
pip install -e ".[validation]"
- name: Execute test suite
# run: ./scripts/test
run: python -m unittest tests.test_layout
run: ./scripts/test
shell: bash

- name: Upload All coverage to Codecov
Expand Down
6 changes: 4 additions & 2 deletions tests/test_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def test_docstring_examples(self) -> None:
class CustomLayoutStrategyTest(unittest.TestCase):
def get_custom_catalog_func(self) -> Callable[[pystac.Catalog, str, bool], str]:
def fn(cat: pystac.Catalog, parent_dir: str, is_root: bool) -> str:
# Use is_path=False since we always use this in cases where we are using URLs
# Use is_path=False since we always use this in cases where we are using
# URLs
return _join(False, parent_dir, "cat/{}/{}.json".format(is_root, cat.id))

return fn
Expand All @@ -195,7 +196,8 @@ def get_custom_collection_func(
self,
) -> Callable[[pystac.Collection, str, bool], str]:
def fn(col: pystac.Collection, parent_dir: str, is_root: bool) -> str:
# Use is_path=False since we always use this in cases where we are using URLs
# Use is_path=False since we always use this in cases where we are using
# URLs
return _join(False, parent_dir, "col/{}/{}.json".format(is_root, col.id))

return fn
Expand Down

0 comments on commit 9ddc7a9

Please sign in to comment.