Repository navigation
Fix broken unit tests: upgrade Typer and resolve network dependencies - #64
Closed
alvarolopez with Copilot wants to merge 3 commits into
Closed
alvarolopez with Copilot wants to merge 3 commits into
alvarolopez with Copilot wants to merge 3 commits into
Conversation
Co-authored-by: alvarolopez <468751+alvarolopez@users.noreply.github.com>
Co-authored-by: alvarolopez <468751+alvarolopez@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix broken unit tests
Fix broken unit tests: upgrade Typer and resolve network dependencies
Nov 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nine unit tests were failing due to Typer 0.12.x incompatibilities and network access issues in the test environment.
Changes
Dependency Updates
typerfrom^0.12.4to^0.20.0to fix CLI argument parsing and Rich console output capture in testsCLI Fixes
@app.callback()function fromversiontomainincli.py- the function name was being interpreted as a command nameSupportedOutputFormats.jsonldto--output-formatoption inmldcatap.py- Typer requires Options to have defaultsNetwork Dependency Elimination
file://pathsmldcat-ap-context-2.0.0.jsonldwith standalone version (removed@importof external URL)test_context_is_valid_jsonto handle both file:// and http(s):// URLstest_generate_jsonld_mappingfor file:// URL resolutionTest Results
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
semiceu.github.io/home/REDACTED/.cache/pypoetry/virtualenvs/ai4-metadata-hdXYriqw-py3.12/bin/python /home/REDACTED/.cache/pypoetry/virtualenvs/ai4-metadata-hdXYriqw-py3.12/bin/pytest -v(dns block)/home/REDACTED/.cache/pypoetry/virtualenvs/ai4-metadata-hdXYriqw-py3.12/bin/python /home/REDACTED/.cache/pypoetry/virtualenvs/ai4-metadata-hdXYriqw-py3.12/bin/pytest -v --tb=no(dns block)/home/REDACTED/.cache/pypoetry/virtualenvs/ai4-metadata-hdXYriqw-py3.12/bin/python /home/REDACTED/.cache/pypoetry/virtualenvs/ai4-metadata-hdXYriqw-py3.12/bin/pytest src/ai4_metadata/tests/test_cli.py -v --tb=no(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.