зеркало из https://github.com/github/octokit.py.git
19 строки
447 B
Python
19 строки
447 B
Python
|
|
from __future__ import print_function
|
|
import unittest
|
|
import os
|
|
|
|
import octokit
|
|
|
|
class OctokitTestCase(unittest.TestCase):
|
|
def setUp(self):
|
|
username = os.environ['OCTOKIT_TEST_USER']
|
|
token = os.environ['OCTOKIT_TEST_TOKEN']
|
|
auth = (username, token)
|
|
self.client = octokit.Client(auth=auth)
|
|
|
|
def test_authentication(self):
|
|
assert self.client.current_user.login == 'mastahyeti'
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main() |