Skip to content

Refactoring phase3 to allow for single-resource validation - #2

Merged
at88mph merged 1 commit into
ivoa:mainfrom
msdemlei:towards-stanalone-validation
Jul 3, 2026
Merged

Refactoring phase3 to allow for single-resource validation#2
at88mph merged 1 commit into
ivoa:mainfrom
msdemlei:towards-stanalone-validation

Conversation

@msdemlei

@msdemlei msdemlei commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What I'm after here is being able to write

import pprint

from benson.config import Settings
from benson.oai import phase3

settings = Settings.from_env()
with open("zw.xml", "rb") as f:
  pprint.pprint(
    phase3.validate_one_voresource(f.read(), True, settings))

This PR should do that, but my pytest somehow clashes with my venv setup ("No module named 'benson'"), and I'm too lazy to work out why they fight. Hence, I'm offering this without having run the tests.

@at88mph
at88mph merged commit a520c58 into ivoa:main Jul 3, 2026
3 checks passed
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