File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
History/Changelog
2
2
=================
3
3
4
- 0.5: 2013-xx-xx
4
+ 0.5: 2013-02-16
5
5
---------------
6
6
7
+ - 100% (mock) test coverage
8
+
7
9
- Add support for the announced _ meta _ endpoint.
8
10
9
11
- Add support for conditional refreshing, e.g.,
@@ -37,7 +39,6 @@ History/Changelog
37
39
And the second call will only give you the new repositories since the last
38
40
request. This mimics behavior in `pengwynn/octokit `_
39
41
40
-
41
42
- Add support for `sortable stars `_.
42
43
43
44
- In github3.users.User, ``iter_keys `` now allows you to iterate over **any **
Original file line number Diff line number Diff line change @@ -527,9 +527,11 @@ def test_markdown(self):
527
527
}
528
528
)
529
529
530
- expect (self .g .markdown ('Foo' , 'gfm' , 'sigmavirus24/cfg' )) == (
531
- b'archive_data'
532
- )
530
+ expect (
531
+ self .g .markdown (
532
+ 'Foo' , 'gfm' , 'sigmavirus24/cfg'
533
+ ).startswith (b'archive_data' )
534
+ ).is_True ()
533
535
self .mock_assertions ()
534
536
535
537
self .post ('https://api.github.com/markdown/raw' )
@@ -799,7 +801,7 @@ def test_zen(self):
799
801
self .response ('archive' )
800
802
self .get ('https://api.github.com/zen' )
801
803
802
- expect (self .g .zen ()) == b'archive_data'
804
+ expect (self .g .zen (). startswith ( b'archive_data' )). is_True ()
803
805
self .mock_assertions ()
804
806
805
807
Original file line number Diff line number Diff line change @@ -1218,15 +1218,15 @@ def test_diff(self):
1218
1218
self .get (self .api )
1219
1219
self .conf .update (headers = {'Accept' : 'application/vnd.github.diff' })
1220
1220
1221
- expect (self .commit .diff ()) == b'archive_data'
1221
+ expect (self .commit .diff (). startswith ( b'archive_data' )). is_True ()
1222
1222
self .mock_assertions ()
1223
1223
1224
1224
def test_patch (self ):
1225
1225
self .response ('archive' , 200 )
1226
1226
self .get (self .api )
1227
1227
self .conf .update (headers = {'Accept' : 'application/vnd.github.patch' })
1228
1228
1229
- expect (self .commit .patch ()) == b'archive_data'
1229
+ expect (self .commit .patch (). startswith ( b'archive_data' )). is_True ()
1230
1230
self .mock_assertions ()
1231
1231
1232
1232
@@ -1246,13 +1246,13 @@ def test_diff(self):
1246
1246
self .get (self .api )
1247
1247
self .conf .update (headers = {'Accept' : 'application/vnd.github.diff' })
1248
1248
1249
- expect (self .comp .diff ()) == b'archive_data'
1249
+ expect (self .comp .diff (). startswith ( b'archive_data' )). is_True ()
1250
1250
self .mock_assertions ()
1251
1251
1252
1252
def test_patch (self ):
1253
1253
self .response ('archive' , 200 )
1254
1254
self .get (self .api )
1255
1255
self .conf .update (headers = {'Accept' : 'application/vnd.github.patch' })
1256
1256
1257
- expect (self .comp .patch ()) == b'archive_data'
1257
+ expect (self .comp .patch (). startswith ( b'archive_data' )). is_True ()
1258
1258
self .mock_assertions ()
You can’t perform that action at this time.
0 commit comments