File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def test_get_source_special(self):
4242 '"テスト1"<br>&\n "テスト2"<br>&' )
4343
4444 def test_get_source_invalid (self ):
45- self .assertRaises (IndexError , self ._api .get_source , 15 , - 1 )
45+ self .assertRaises (IndexError , self ._api .get_source , 15 , 100000 )
4646
4747 def test_search (self ):
4848 results = list (self ._api .search ('SearchKeyword01 SearchKeyword02' ))
@@ -84,7 +84,7 @@ def test_get_list(self):
8484 # N.B. The page counter is not updated immediately.
8585 pages = list (self ._api .get_list (_start = last_index ))
8686 expected = (count % 100 )
87- assert ( expected - 5 ) < len (pages ) < ( expected + 5 )
87+ assert max ( 0 , ( expected - 50 )) < len (pages ) < min ( 100 , ( expected + 50 ) )
8888
8989 top_page = next (self ._api .get_list (_start = last_index + 1 ))
9090 assert top_page == {'id' : 1 , 'name' : 'トップページ' }
You can’t perform that action at this time.
0 commit comments