8000 Re-organize issue tests. · jsullivanlive/github3.py@3714898 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 3714898

Browse files
committed
Re-organize issue tests.
Add alternate options to Event payload types.
1 parent 9a84755 commit 3714898

File tree

2 files changed

+250
-132
lines changed

2 files changed

+250
-132
lines changed

tests/test_event.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def __test_events(self, events):
1212
'type')
1313
if e.org:
1414
expect(e.org).isinstance(Organization)
15-
expect(e.payload).isinstance(dict)
15+
16+
payload = (dict, base.str_test[0], base.str_test[1])
17+
expect(e.payload).isinstance(payload)
1618
expect(e.is_public()).isinstance(bool)
1719
expect(e.to_json()).isinstance(dict)
1820
expect(e.repo).isinstance(tuple)

0 commit comments

Comments
 (0)
0