Skip to content

Test upgrade of linkml-runtime to 1.9.1-rc1#839

Open
sierra-moxon wants to merge 10 commits intomainfrom
decrease_test_verbosity
Open

Test upgrade of linkml-runtime to 1.9.1-rc1#839
sierra-moxon wants to merge 10 commits intomainfrom
decrease_test_verbosity

Conversation

@sierra-moxon
Copy link
Copy Markdown
Contributor

@sierra-moxon sierra-moxon commented Apr 9, 2025

This also reduces some test verbosity (move print -> logging.info, but the logger is not configured to completion)
adds a short-cut make lint-fix target.

Comment thread tests/test_cli.py
result = self.runner.invoke(main, ["--help"])
out = result.stdout
print("STDERR", result.stderr)
logging.info("STDERR", result.stderr)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe switch to a named logger as suggested here (tutorial or logging cookbook).

To change insert after the import section

logger = logging.getLogger(__name__)

and then replace all logging.debug, ligging.info etc. by logger.debug, logger.info etc.

linkml-runtime also does it this way (test_schemaview.py).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep! definitely. not done with this implementation at all, just first pass at getting the output a bit more grok'able so I can see the breaking errors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this refactoring should go in another PR. The changes here are consistent with the rest of the library and I captured the next step we need to take here: #838

@sierra-moxon sierra-moxon marked this pull request as ready for review April 9, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants