Skip to content

test: drop config-data assertions, keep logic tests - #445

Merged
spalen0 merged 1 commit into
mainfrom
tests-cleanup
Oct 24, 2026
Merged

spalen0 merged 1 commit into
mainfrom
tests-cleanup

Conversation

@spalen0

@spalen0 spalen0 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

CI on main broke (run) because cee092d removed Katana Morpho vaults, and two tests depended on those config entries. This PR removes tests that only check config data and changes logic tests to use synthetic fixtures, so editing a config won't break CI.

Removed (config pins only):

  • test_morpho_markets: Katana collateral vault address set, Robinhood market risk tiers, Robinhood explorer URL
  • test_morpho_governance: assertion that HyperEVM is a configured chain
  • test_known_addresses: lookups of specific Yearn Safe, proposer bot, Safe utility and timelock labels
  • test_lender_borrower: accumulator strategy address pin
  • test_pegged_assets: required-asset list, "BTC wrappers are downside-only"
  • test_risk_anchors: hardcoded list of registered Safe selectors, "enableModule is CRITICAL"
  • test_threejane_context: note-text pins, list of known ProtocolConfigLib keys
  • test_web3_wrapper: HyperEVM public RPC URL pin
  • test_3jane, test_stables_oracles: DISPATCHABLE_PROTOCOLS membership pins

Rewritten to use synthetic fixtures instead of live config:

  • Morpho zero-asset collateral group (patched VAULTS_V1_BY_CHAIN), and analyze_v2_vault running the low-liquidity check
  • _watched_safe_labels: explicit label, fallback label, unknown network skipped
  • PeggedAsset.is_depegged: symmetric, BTC peg, downside-only
  • Small-flow initiator exclusion (patched IGNORED_TRANSACTION_SENDERS)
  • Public RPC fallback (fake URL map)
  • Peg alert carries the asset owner as protocol

Kept on purpose: checks that apply to every entry in a table and catch malformed data, e.g. selectors match their signatures, names are unique, depeg tolerance is positive, Safe labels are valid env-var suffixes. Also kept: the jobs.yaml ↔ monitoring.yaml consistency checks that CLAUDE.md documents.

Test plan

  • uv run pytest -q: 1986 passed, 4 skipped
  • uv run ruff check . / ruff format --check .

🤖 Generated with Claude Code

Remove tests that only pinned specific config entries (vault addresses,
risk tiers, labels, RPC URLs, note text) and decouple logic tests from
live config by using synthetic fixtures. Fixes CI on main after the
Katana Morpho vault cleanup in cee092d.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@spalen0
spalen0 marked this pull request as ready for review October 24, 2026 15:31
@spalen0
spalen0 merged commit 2491285 into main Oct 24, 2026
3 checks passed
@spalen0
spalen0 deleted the tests-cleanup branch October 24, 2026 15:31
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.

1 participant