@@ -225,11 +225,11 @@ def test_edit_no_parameters(self):
225
225
def test_enterprise (self ):
226
226
"""Show that enterprise data can be instantiated as Issue."""
227
227
json = helper .create_example_data_helper ('issue_enterprise' )()
228
- assert github3 .issues .Issue (json )
228
+ assert github3 .issues .Issue (json , self . session )
229
229
230
230
def test_equality (self ):
231
231
"""Show that two instances of Issue are equal."""
232
- issue = github3 .issues .Issue (get_issue_example_data ())
232
+ issue = github3 .issues .Issue (get_issue_example_data (), self . session )
233
233
assert self .instance == issue
234
234
235
235
issue ._uniq = 1
@@ -247,7 +247,8 @@ def test_issue_137(self):
247
247
GitHub sometimes returns `pull` as part of of the `html_url` for Issue
248
248
requests.
249
249
"""
250
- issue = Issue (helper .create_example_data_helper ('issue_137' )())
250
+ issue = Issue (helper .create_example_data_helper ('issue_137' )(),
251
+ self .session )
251
252
self .assertEqual (
252
253
issue .html_url ,
253
254
"https://github.com/sigmavirus24/github3.py/pull/1" )
@@ -392,7 +393,7 @@ class TestLabel(helper.UnitHelper):
392
393
393
394
def test_equality (self ):
394
395
"""Show that two instances of Label are equal."""
395
- label = Label (get_issue_label_example_data ())
396
+ label = Label (get_issue_label_example_data (), self . session )
396
397
assert self .instance == label
397
398
398
399
label ._uniq = ('https://https//api.github.com/repos/sigmavirus24/'
@@ -444,7 +445,8 @@ def test_repr(self):
444
445
def test_equality (self ):
445
446
"""Show that two instances of IssueEvent are equal."""
446
447
issue_event = github3 .issues .event .IssueEvent (
447
- get_issue_event_example_data ()
448
+ get_issue_event_example_data (),
449
+ self .session
448
450
)
449
451
450
452
assert self .instance == issue_event
0 commit comments