Skip to content

Commit 110320d

Browse files
committed
fix test
1 parent 947cab3 commit 110320d

File tree

3 files changed

+67
-45
lines changed

3 files changed

+67
-45
lines changed

00_core.ipynb

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"from urllib.parse import quote\n",
3636
"from datetime import datetime,timedelta\n",
3737
"from pprint import pprint\n",
38+
"from time import sleep\n",
3839
"import os"
3940
]
4041
},
@@ -261,6 +262,8 @@
261262
"text/markdown": [
262263
"---\n",
263264
"\n",
265+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L110){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
266+
"\n",
264267
"### GhApi.__call__\n",
265268
"\n",
266269
"> GhApi.__call__ (path:str, verb:str=None, headers:dict=None,\n",
@@ -271,6 +274,8 @@
271274
"text/plain": [
272275
"---\n",
273276
"\n",
277+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L110){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
278+
"\n",
274279
"### GhApi.__call__\n",
275280
"\n",
276281
"> GhApi.__call__ (path:str, verb:str=None, headers:dict=None,\n",
@@ -314,9 +319,9 @@
314319
"text/markdown": [
315320
"```json\n",
316321
"{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
317-
" 'object': { 'sha': '037bf40e4e5eb32a165db42a35dd89e1c1546493',\n",
322+
" 'object': { 'sha': '3d27c573b7f9bdea704289567603f1d02e7e113b',\n",
318323
" 'type': 'commit',\n",
319-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/037bf40e4e5eb32a165db42a35dd89e1c1546493'},\n",
324+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/3d27c573b7f9bdea704289567603f1d02e7e113b'},\n",
320325
" 'ref': 'refs/heads/master',\n",
321326
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n",
322327
"```"
@@ -325,9 +330,9 @@
325330
"{'ref': 'refs/heads/master',\n",
326331
" 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
327332
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n",
328-
" 'object': {'sha': '037bf40e4e5eb32a165db42a35dd89e1c1546493',\n",
333+
" 'object': {'sha': '3d27c573b7f9bdea704289567603f1d02e7e113b',\n",
329334
" 'type': 'commit',\n",
330-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/037bf40e4e5eb32a165db42a35dd89e1c1546493'}}"
335+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/3d27c573b7f9bdea704289567603f1d02e7e113b'}}"
331336
]
332337
},
333338
"execution_count": null,
@@ -350,6 +355,8 @@
350355
"text/markdown": [
351356
"---\n",
352357
"\n",
358+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L134){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
359+
"\n",
353360
"### GhApi.__getitem__\n",
354361
"\n",
355362
"> GhApi.__getitem__ (k)\n",
@@ -359,6 +366,8 @@
359366
"text/plain": [
360367
"---\n",
361368
"\n",
369+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L134){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
370+
"\n",
362371
"### GhApi.__getitem__\n",
363372
"\n",
364373
"> GhApi.__getitem__ (k)\n",
@@ -392,9 +401,9 @@
392401
"text/markdown": [
393402
"```json\n",
394403
"{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
395-
" 'object': { 'sha': '037bf40e4e5eb32a165db42a35dd89e1c1546493',\n",
404+
" 'object': { 'sha': '3d27c573b7f9bdea704289567603f1d02e7e113b',\n",
396405
" 'type': 'commit',\n",
397-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/037bf40e4e5eb32a165db42a35dd89e1c1546493'},\n",
406+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/3d27c573b7f9bdea704289567603f1d02e7e113b'},\n",
398407
" 'ref': 'refs/heads/master',\n",
399408
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n",
400409
"```"
@@ -403,9 +412,9 @@
403412
"{'ref': 'refs/heads/master',\n",
404413
" 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
405414
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n",
406-
" 'object': {'sha': '037bf40e4e5eb32a165db42a35dd89e1c1546493',\n",
415+
" 'object': {'sha': '3d27c573b7f9bdea704289567603f1d02e7e113b',\n",
407416
" 'type': 'commit',\n",
408-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/037bf40e4e5eb32a165db42a35dd89e1c1546493'}}"
417+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/3d27c573b7f9bdea704289567603f1d02e7e113b'}}"
409418
]
410419
},
411420
"execution_count": null,
@@ -439,7 +448,7 @@
439448
{
440449
"data": {
441450
"text/plain": [
442-
"'037bf40e4e5eb32a165db42a35dd89e1c1546493'"
451+
"'3d27c573b7f9bdea704289567603f1d02e7e113b'"
443452
]
444453
},
445454
"execution_count": null,
@@ -476,7 +485,7 @@
476485
"name": "stdout",
477486
"output_type": "stream",
478487
"text": [
479-
"Quota remaining: 4995 of 5000\n"
488+
"Quota remaining: 4847 of 5000\n"
480489
]
481490
},
482491
{
@@ -512,7 +521,7 @@
512521
{
513522
"data": {
514523
"text/plain": [
515-
"'4995'"
524+
"'4847'"
516525
]
517526
},
518527
"execution_count": null,
@@ -926,7 +935,7 @@
926935
{
927936
"data": {
928937
"text/plain": [
929-
"5"
938+
"2"
930939
]
931940
},
932941
"execution_count": null,
@@ -961,7 +970,7 @@
961970
"name": "stdout",
962971
"output_type": "stream",
963972
"text": [
964-
"2022-08-08T08:42:29Z -> 2022-08-08 08:42:29\n"
973+
"2022-09-10T06:47:38Z -> 2022-09-10 06:47:38\n"
965974
]
966975
}
967976
],
@@ -1048,7 +1057,7 @@
10481057
{
10491058
"data": {
10501059
"text/plain": [
1051-
"('https://gist.github.com/817fc7eb3446de412395570ee2f9af7b', 'some content')"
1060+
"('https://gist.github.com/b3e4356506c67cfa311e555edc3cd20a', 'some content')"
10521061
]
10531062
},
10541063
"execution_count": null,
@@ -1185,6 +1194,7 @@
11851194
"metadata": {},
11861195
"outputs": [],
11871196
"source": [
1197+
"sleep(0.2)\n",
11881198
"rels = api.repos.list_releases()\n",
11891199
"test_eq(len(rels), 1)"
11901200
]
@@ -1216,14 +1226,24 @@
12161226
"text/markdown": [
12171227
"---\n",
12181228
"\n",
1219-
"#### GhApi.delete_release\n",
1229+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L160){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
1230+
"\n",
1231+
"### GhApi.delete_release\n",
12201232
"\n",
12211233
"> GhApi.delete_release (release)\n",
12221234
"\n",
12231235
"Delete a release and its associated tag"
12241236
],
12251237
"text/plain": [
1226-
"<nbdev.showdoc.BasicMarkdownRenderer>"
1238+
"---\n",
1239+
"\n",
1240+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L160){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
1241+
"\n",
1242+
"### GhApi.delete_release\n",
1243+
"\n",
1244+
"> GhApi.delete_release (release)\n",
1245+
"\n",
1246+
"Delete a release and its associated tag"
12271247
]
12281248
},
12291249
"execution_count": null,
@@ -1667,27 +1687,13 @@
16671687
"cell_type": "code",
16681688
"execution_count": null,
16691689
"metadata": {},
1670-
"outputs": [
1671-
{
1672-
"data": {
1673-
"text/markdown": [
1674-
"```json\n",
1675-
"{}\n",
1676-
"```"
1677-
],
1678-
"text/plain": [
1679-
"{}"
1680-
]
1681-
},
1682-
"execution_count": null,
1683-
"metadata": {},
1684-
"output_type": "execute_result"
1685-
}
1686-
],
1690+
"outputs": [],
16871691
"source": [
16881692
"res = api.enable_pages(branch='new-branch', path='/')\n",
1693+
"\n",
16891694
"test_eq(res.source.branch, 'new-branch')\n",
16901695
"test_eq(res.source.path, '/')\n",
1696+
"\n",
16911697
"api.repos.delete_pages_site()\n",
16921698
"api.delete_branch('new-branch')"
16931699
]

ghapi/_modidx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
d = { 'settings': { 'branch': 'master',
44
'doc_baseurl': '/',
55
'doc_host': 'https://ghapi.fast.ai',
6-
'git_url': 'https://github.com/fastai/ghapi/tree/master/',
6+
'git_url': 'https://github.com/fastai/ghapi',
77
'lib_path': 'ghapi'},
88
'syms': { 'ghapi.actions': { 'ghapi.actions._create_file': ('actions.html#_create_file', 'ghapi/actions.py'),
99
'ghapi.actions._replace': ('actions.html#_replace', 'ghapi/actions.py'),

0 commit comments

Comments
 (0)