This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for user_info in the db already
- Loading branch information
1 parent
6ceceac
commit b422b51
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from __future__ import print_function, unicode_literals | ||
|
||
from gittip.elsewhere import bitbucket | ||
from gittip.testing import Harness | ||
|
||
|
||
class TestElsewhereBitbucket(Harness): | ||
|
||
def test_get_user_info_gets_user_info(self): | ||
bitbucket.BitbucketAccount("1", {'username': 'alice'}).opt_in('alice') | ||
expected = {"username": "alice"} | ||
actual = bitbucket.get_user_info('alice') | ||
assert actual == expected, actual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters