Repository navigation
[test]: Lithostratigraphy tests - #8758
rijulpoudel wants to merge 6 commits into
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Payload helpers and record creation specifyweb/backend/businessrules/tests/test_lithostrat.py |
Adds payload and pre-existing-record helpers. Tests creation, tree references, rank, and optional-field persistence. |
Clone, update, and delete specifyweb/backend/businessrules/tests/test_lithostrat.py |
Tests cloning, deletion of new and pre-existing records, and updating a version-2 record to version 3. |
Possibly related PRs
- specify/specify7#8736: Adds similar API test coverage for Chronostratigraphy, including cloning, optional fields, deletion, and version updates.
Suggested reviewers: carolinedenis, melton-jason, grantfitzsimmons
Change: Other
Merge Risk: 
Minimal · up to c9d16
-
The change adds lithostratigraphy API lifecycle tests. No actionable merge-blocking risk remains; merge after normal checks pass.
Pre-merge checks: 
5 · 
1
-
Failed checks: 1 warning Passed checks: 5 passed-
Full details: Title check
-
Explanation
The title "[test]: Lithostratigraphy tests" matches the main change. The PR adds API-level CRUD tests for lithostratigraphy records in test_lithostrat.py, covering creation with tree relationships, optional fields, cloning, deletion, and version 2 to 3 updates. The title is short, specific, and states the primary change. The bracketed "[test]" prefix is a minor style point and does not affect the assessment.
Full details: Linked Issues check
-
Explanation
Issue
#8756requests tests for Lithostratigraphy. The PR adds tests for API creation, optional-field persistence, cloning, deletion of new records, and editing and deleting records created in a previous version. The tests use concrete assertions for saved values, relationships, deletion, and version changes.
Full details: Out of Scope Changes check
-
Explanation
The whole-PR diff changes only
specifyweb/backend/businessrules/tests/test_lithostrat.py. The added helpers and test setup support the Lithostratigraphy test objectives in#8756. No unrelated production code or unrelated feature changes are present.
Full details: Automatic Tests
-
Explanation
The PR adds automatic tests in
specifyweb/backend/businessrules/tests/test_lithostrat.py. The diff increases the test count from 3 to 9 and covers creation, optional fields, cloning, deletion, and editing of lithostratigraphy records throughApiTestshelpers.
-
Full details: Testing Instructions
-
Explanation
The PR description contains only “Fixes
#8756” and provides no testing instructions. The changed component isspecifyweb/backend/businessrules/tests/test_lithostrat.py, which adds API CRUD, optional-field, clone, and versioned-record tests. The repository template includes a Testing instructions section, but the PR does not populate it.Resolution
Add a Testing instructions section to the PR description. Include the targeted command
./ve/bin/python manage.py test specifyweb.backend.businessrules.tests.test_lithostrat --verbosity=3and state that the tests cover Lithostrat API creation, optional-field persistence, cloning, deletion, and editing or deleting records from a previous version. Also state whether the full test suite was run.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Fixes #8756
Summary by CodeRabbit