Cover all revision status groupings in the lifecycle consistency test

Open Beginner friendly
#281 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
testing

Research direction

Find test_lifecycle_groupings_match_the_choice_set() and the revision status groupings in constants.py. Read the existing assertions, then include UNSTORED_REVISION_STATUSES in the test’s checks. Run the lifecycle consistency test and confirm the grouping contains only valid, unique values from RevisionStatusChoices.

Written by the indexing model from the issue text.

Description

app: scripts Bucket: KTLO status: backlog type: housekeeping
Proposed Changes

Extend test_lifecycle_groupings_match_the_choice_set() to include UNSTORED_REVISION_STATUSES.

Justification

The existing test checks that revision status groupings defined in constants.py contain only valid and unique values from RevisionStatusChoices. However, UNSTORED_REVISION_STATUSES is currently missing from these checks.

Including it ensures consistent coverage across all six revision status groupings and helps prevent future discrepancies.

Dominant language
Python
Stars
9
Forks
0
Avg merge
18h 59m
Merged PRs (30d)
93

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from netbox-community/netbox-scripts

All issues in netbox-community/netbox-scripts

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.