8000 Add regression test for missing milestone creator. · pythonthings/github3.py@1fcde29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1fcde29

Browse files
committed
Add regression test for missing milestone creator.
This adds a simple regression test for the Milestone class for the edge case where a Milestone has a null creator.
1 parent dfbab2e commit 1fcde29

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_issues.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ def test_update(self):
121121
'2013-12-31T23:59:59Z')
122122
self.mock_assertions()
123123

124+
def test_issue_464(self):
125+
json = self.m.as_dict().copy()
126+
json['creator'] = None
127+
m = Milestone(json)
128+
assert m.creator is None
129+
124130

125131
class TestIssue(BaseCase):
126132
def __init__(self, methodName='runTest'):

0 commit comments

Comments
 (0)
0