Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct linkml_files.URL_FOR - add URL resolutiontests #320

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
#----------------------------------------------
- name: Generate coverage results
run: |
poetry run coverage run -m unittest discover
poetry run coverage run -m pytest
poetry run coverage xml
poetry run coverage report -m

Expand Down
3 changes: 2 additions & 1 deletion linkml_runtime/linkml_model/linkml_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def _build_loc(base: str, source: Source, fmt: Format) -> str:

def URL_FOR(source: Source, fmt: Format) -> str:
""" Return the URL to retrieve source in format """
return f"{LINKML_URL_BASE}{source.value}.{fmt.value}"
fmt_path: FormatPath = _Path.get(fmt.name)
return f"{LINKML_URL_BASE}{source.value}.{fmt_path.extension}"


def LOCAL_PATH_FOR(source: Source, fmt: Format) -> str:
Expand Down
Loading
Loading