Skip to content

Refactor: Class-based views - Eligibility Start #2916

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lalver1
Copy link
Member

@lalver1 lalver1 commented May 14, 2025

Closes #2869

WIP(tests) - determine if TestStartView is required. Removed test_start_without_flow since TestFlowSessionRequiredMixin seems to be testing the same functionality. Note that the CBV is still completely covered by the original tests.

WIP(tests) - determine if TestStartView is required. Removed
test_start_without_flow since TestFlowSessionRequiredMixin seems
to be testing the same functionality. Note that the CBV is still
completely covered by the original tests.
@lalver1 lalver1 self-assigned this May 14, 2025
@github-actions github-actions bot added deployment-dev [auto] Changes that will trigger a deploy if merged to dev back-end Django views, sessions, middleware, models, migrations etc. tests Related to automated testing (unit, UI, integration, etc.) labels May 14, 2025
Copy link

github-actions bot commented May 14, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  benefits/eligibility
  views.py
Project Total  

This report was generated by python-coverage-comment-action

# remove the "view" context key added by ContextMixin in
# https://github.com/django/django/blob/5.2/django/views/generic/base.py#L30
# before assertion
assert set({k: v for k, v in context.items() if k not in "view"}) == set(mock_session.flow().eligibility_start_context)
Copy link
Member Author

Choose a reason for hiding this comment

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

There's a lot going on in this line, let's break it up to make it clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. deployment-dev [auto] Changes that will trigger a deploy if merged to dev tests Related to automated testing (unit, UI, integration, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Class-based views: Eligibility start
1 participant