Skip to content

Commit

Permalink
Fix test unit
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiggi committed Apr 5, 2024
1 parent 1efc234 commit bf4941e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions disdrodb/metadata/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _get_list_all_metadata(base_dir, data_sources=None, campaign_names=None, sta
metadata_path = os.path.join(base_path, "**", "metadata", "*.yml")
metadata_filepaths += glob.glob(metadata_path, recursive=True)

return list(set(metadata_filepaths))
return sorted(set(metadata_filepaths))


def _get_list_metadata_with_data(base_dir, data_sources=None, campaign_names=None, station_names=None):
Expand Down Expand Up @@ -232,4 +232,4 @@ def _get_list_metadata_with_data(base_dir, data_sources=None, campaign_names=Non
# If no stations available, raise an error
if len(metadata_filepaths) == 0:
raise ValueError("No stations are available !")

Check warning on line 234 in disdrodb/metadata/search.py

View check run for this annotation

Codecov / codecov/patch

disdrodb/metadata/search.py#L234

Added line #L234 was not covered by tests
return metadata_filepaths
return sorted(metadata_filepaths)
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ changelog = "https://github.com/ltelab/disdrodb/blob/main/CHANGELOG.md"
write_to = "disdrodb/_version.py"

[tool.setuptools]
packages = ["disdrodb"]
license-files = ["LICENSE"]

[tool.setuptools.packages.find]
include = ["disdrodb*"]

[project.scripts]
# Initialization
Expand Down

0 comments on commit bf4941e

Please sign in to comment.