Skip to content

Conversation

@hf-kklein
Copy link
Contributor

Move the FV2410+FV2504 database fixture from test_ahb_diff_view.py to
conftest.py to enable reuse across multiple test files.

Changes:

  • Created session_fv2410_fv2504_with_diff_view fixture in conftest.py
    with meaningful name that includes the format versions involved
  • Renamed fixture from diff_view_session to the more descriptive name
  • Module-scoped fixture creates DB with ahb_hierarchy_materialized,
    ahb_expressions, v_ahbtabellen, and v_ahb_diff views
  • Updated all invariant tests in test_ahb_diff_view.py to use the
    shared fixture

This enables potential future sharing of the expensive FV2410+FV2504
database creation (~30s) across other test files that need to compare
these two format versions.

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Move the FV2410+FV2504 database fixture from test_ahb_diff_view.py to
conftest.py to enable reuse across multiple test files.

Changes:
- Created `session_fv2410_fv2504_with_diff_view` fixture in conftest.py
  with meaningful name that includes the format versions involved
- Renamed fixture from `diff_view_session` to the more descriptive name
- Module-scoped fixture creates DB with ahb_hierarchy_materialized,
  ahb_expressions, v_ahbtabellen, and v_ahb_diff views
- Updated all invariant tests in test_ahb_diff_view.py to use the
  shared fixture

This enables potential future sharing of the expensive FV2410+FV2504
database creation (~30s) across other test files that need to compare
these two format versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hf-kklein
Copy link
Contributor Author

claudes guess about "only 30s" saved. is wrong. it should be way more.

@hf-kklein hf-kklein changed the title refactor(test): add shared fixture session_fv2410_fv2504_with_diff_view refactor(test): add shared fixture session_fv2410_fv2504_with_diff_view Dec 5, 2025
@hf-kklein hf-kklein merged commit 1b0552d into main Dec 5, 2025
21 checks passed
@hf-kklein hf-kklein deleted the test-speedup branch December 5, 2025 09:19
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