Skip to content

Commit f307e99

Browse files
banesullivanlwasser
authored andcommitted
Test missing community partnerships section
1 parent dd75e40 commit f307e99

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Submitting Author: Fakename (@fakeauthor)
2+
All current maintainers: (@fakeauthor1, @fakeauthor2)
3+
Package Name: fake_package
4+
One-Line Description of Package: A fake python package
5+
Repository Link: https://example.com/fakeauthor1/fake_package
6+
Version submitted: v1.0.0
7+
EiC: @fakeeic
8+
Editor: @fakeeditor
9+
Reviewers: @fakereviewer1 , @fakereviewer2, @fakereviewer3
10+
Reviews Expected By: fake date
11+
Archive: [![DOI](https://example.com/fakearchive)](https://zenodo.org/records/8415866)
12+
JOSS DOI: [![DOI](https://example.com/fakearchive)](https://doi.org/10.21105/joss.01450)
13+
Version accepted: 2.0.0 ([repo](https://example.com/fakeauthor1/fake_package/releases/tag/v2.0.0), [pypi](https://pypi.org/project/fake_project/2.0.0), [archive](https://example.com/fakearchive))
14+
Date accepted (month/day/year): 06/29/2024
15+
16+
---
17+
18+
## Scope
19+
20+
- [x] I agree to abide by [pyOpenSci's Code of Conduct][PyOpenSciCodeOfConduct] during the review process and in maintaining my package after should it be accepted.
21+
- [x] I have read and will commit to package maintenance after the review as per the [pyOpenSci Policies Guidelines][Commitment].
22+
(etc)

tests/integration/test_parse_issues.py

+13
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,16 @@ def test_parse_labels(issue_list, process_issues):
121121
issue.labels = labels
122122
review = process_issues.parse_issue(issue)
123123
assert review.labels == ["test", "another_label"]
124+
125+
126+
def test_missing_community_partnerships(process_issues, data_file):
127+
"""
128+
Test handling of issues with a missing "## Community Partnerships" section.
129+
130+
This is a smoke test to ensure graceful handling of this case.
131+
"""
132+
review = data_file("reviews/missing_community_partnerships.txt", True)
133+
with pytest.warns(
134+
UserWarning, match="## Community Partnerships not found in the list"
135+
):
136+
review = process_issues.parse_issue(review)

0 commit comments

Comments
 (0)