Commit f6bcd100 authored by Meet Mangukiya's avatar Meet Mangukiya

Fix GitHubRepository tests

parent 18a1b08e
interactions:
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python-requests/2.17.3]
method: GET
uri: https://api.github.com/repos/gitmate-test-user/test?User-Agent=IGitt
response:
body:
string: !!binary |
H4sIAAAAAAAAA6WYwXKjOBCGX2WK69oRTNZJlqqp2YeYvezFJYMM2gBiJGFXQuXd928JDPaksMe6
uDCoP/1qqaVu9ZHMo/TPvzabl+dNsooaXosojawwNlpF+66qtsOrQtqaW7GmT+vOCM2GRurYCB2l
fVSpQjYw/qUlSNRL8vT0ksSP8SriB2653na6QvPS2takjPmXJn6AfdntqItMNVY09iFTNevYaP/9
8O0RyEIPGGJHeHGBa+VA8ubAGfaZtNLW1YUUr8DZfWaxV1WljuBdjuCmLtnJnDzsULIpQlAw75my
pYBLMcwPco409k55zrTHwI3dypxgBpOlRX6fxMEYAmmdfPRMi1Y5arczmZatlaq5U+oZAkilC97I
dx6ABMKARCLvFOVMgRAHLN07Gd62Z62WB569kbu0yIQ8YBZCuBcQYO1bSwH/D9YNzYm0YsvzmuJ4
zysjPlaR02DRyL1YIV5/K17GbSIXp9lGf/wL7R5fyFfodq/064m/GMbOub8G5dgJga64fImA0IQ9
BL2KtxAMmfcMv0MAZYhyvlOaW3Vt01iUd8bp2fwvLREreB0i29mDUyoV5EVnD440phM3rdfFUTuM
YWNMNF2985vcLZGwSPYAKOXGyKIRIsR7J0bPxl14p3mTlUHUEdEz/+TmmRchQskclF2ldiEYnIzM
MXpmSu4PHbsN1EZQQpwxtdiHCiXEiWl12Ew7kcQ4EXHIWUx6iMoRwfrBmxVvio4XQdATA/NNB3HB
36+mLYsRM0FApPRMy10XvKtNGNLp8wLEeJA7J8rEdLnGchqzPPpZyuLGX9fy2hG/CBwIZ6s9nErr
85JM/6/nI1fFEqJn0xbst/gBHuDZYY8fVc67GIqAkMUwIlj/R8ttSXsVemq5FgGSBwLrdxx50sPD
Q18K7vLlWuiwsPUAkLjOSiR9ASr7EYHUBvWby7/3JDJHPl4pnof49cQAz89ggFIPmM98i/IzRJ6z
nwNrWSHrVE3QnjpB5uhGWbmX2S2lx2KQnXH670Y2mVjxqlphtVqZSaxflHs0gcgoRZB7PACDQM3v
K4xKYCmHeFwLj+iZrxxz0VbqLXTjmVEocrVAOZJvuUUd8TVOntZxsk4ef8TP6eYpTTb/ok3X5lfb
tJ0pzzBJso5ffiRxGsfp41fCYCMdFjSecEWxdC/gShC6cYCdMeVk9/dkleLxk0uUwSqrsDIvAujm
Hg+X59pVS+gsVS1apBhR2iBUqPx7xzOugWa5Qqa6Bp7Grc2RWySzOJWnV2N+MQJKbrY+jqPU6o6q
RbxptfpPZNbM301bx6zhUb7KM0NKf06FoS/uhs4hspZaq+EWyetXrWiG/keRzy++vAQGJrMGUUqf
xjG5AeZiz7vKbn2mjdVVc2NdXdwKXWNcdFNBN13zChkfsZBG1bTl+GdUzghbddyanx3HenB7+tjM
f3GvIJSyiPMvWtChcm7TCHtEeToOjGZplimNbvn4Hy8+5sfSEwAA
headers:
Access-Control-Allow-Origin: ['*']
Access-Control-Expose-Headers: ['ETag, Link, X-GitHub-OTP, X-RateLimit-Limit,
X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes,
X-Poll-Interval']
Cache-Control: ['private, max-age=60, s-maxage=60']
Content-Encoding: [gzip]
Content-Security-Policy: [default-src 'none']
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 14 Jun 2017 08:45:35 GMT']
ETag: [W/"dfef9428a1c81246c9f4c64518ae977a"]
Last-Modified: ['Wed, 13 Jan 2016 07:56:15 GMT']
Server: [GitHub.com]
Status: [200 OK]
Strict-Transport-Security: [max-age=31536000; includeSubdomains; preload]
Vary: ['Accept, Authorization, Cookie, X-GitHub-OTP']
X-Accepted-OAuth-Scopes: [repo]
X-Content-Type-Options: [nosniff]
X-Frame-Options: [deny]
X-GitHub-Media-Type: [github.v3; format=json]
X-GitHub-Request-Id: ['E3B2:15C95:10E4C2B:15F0AC6:5940F7AF']
X-OAuth-Scopes: ['admin:gpg_key, admin:org, admin:org_hook, admin:public_key,
admin:repo_hook, delete_repo, gist, notifications, repo, user']
X-RateLimit-Limit: ['5000']
X-RateLimit-Remaining: ['4987']
X-RateLimit-Reset: ['1497432960']
X-Runtime-rack: ['0.050067']
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
version: 1
......@@ -24,6 +24,7 @@ class TestGitHubRepository(unittest.TestCase):
def test_full_name(self):
self.assertEqual(self.repo.full_name, 'gitmate-test-user/test')
@my_vcr.use_cassette('tests/GitHub/cassettes/github_repo_clone_url.yaml')
def test_clone_url(self):
self.assertEqual(self.repo.clone_url,
'https://{}@github.com/gitmate-test-user/test.git'.format(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment