Skip to content

Commit 615e464

Browse files
committed
user after_setup to override self.instance
1 parent 6c3b789 commit 615e464

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/unit/test_users.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ class TestGhostUser(helper.UnitHelper):
7171
"""Test methods on Ghost User class."""
7272

7373
described_class = github3.users.User
74+
example_data = get_users_example_data()
7475

75-
def setUp(self):
76-
"""Use None to create a ghost user."""
77-
self.session = self.create_session_mock()
78-
self.old_build_url = None
76+
def after_setup(self):
7977
self.instance = github3.users.User(None, self.session)
8078

8179
def test_str(self):

0 commit comments

Comments
 (0)