Skip to content

Refactor: move json tools and auth components to oold-python#116

Merged
simontaurus merged 2 commits intomainfrom
dev
May 5, 2026
Merged

Refactor: move json tools and auth components to oold-python#116
simontaurus merged 2 commits intomainfrom
dev

Conversation

@simontaurus
Copy link
Copy Markdown
Contributor

No description provided.

….auth

- Replace inline YAML parsing in get_credential() with oold.backend.auth.load_credentials
- Replace inline IRI matching with oold.backend.auth.find_credential
- Add _oold_to_osw() converter for SecretStr to plain str credential types
- Keep OswBaseModel base class (required by WtSiteConfig v1 field)
- Keep osw-specific features: .gitignore auto-update, default_paths
- Backward compatible: all existing tests pass unchanged
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 25123257764

Coverage decreased (-0.7%) to 51.833%

Details

  • Coverage decreased (-0.7%) from the base build.
  • Patch coverage: 7 uncovered changes across 1 file (48 of 55 lines covered, 87.27%).
  • 17 coverage regressions across 1 file.

Uncovered Changes

File Changed Covered %
src/osw/auth.py 54 47 87.04%

Coverage Regressions

17 previously-covered lines in 1 file lost coverage.

File Lines Losing Coverage Coverage
src/osw/custom_types.py 17 0.0%

Coverage Stats

Coverage Status
Relevant Lines: 5690
Covered Lines: 3146
Line Coverage: 55.29%
Relevant Branches: 1213
Covered Branches: 432
Branch Coverage: 35.61%
Branches in Coverage %: Yes
Coverage Strength: 3.28 hits per line

💛 - Coveralls

@simontaurus simontaurus merged commit e8e115c into main May 5, 2026
12 of 18 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