Skip to content

Commit

Permalink
Testing for #29
Browse files Browse the repository at this point in the history
  • Loading branch information
fake-name committed Dec 29, 2017
1 parent d191fc6 commit fd35765
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions test/api_poke.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@
# 'get-genre-id',
# 'get-publisher-id',
# 'get-group-id',
#
# 'get-artist-data',
# 'get-author-data',
# 'get-tag-data',
# 'get-genre-data',
# 'get-publisher-data',
# 'get-group-data',

# 'get-series-id',
# 'get-series-data',

# 'get-feeds',
# 'get-watches',

'search-title',
# 'search-title',
# 'search-advanced',
# 'enumerate-tags',
]
Expand Down Expand Up @@ -71,28 +79,27 @@ def test():



post = {
'mode' : 'search-title',
'title' : "",
}
print("Request: ", post)
pg = wg.getpage("http://127.0.0.1:5000/api", postJson=post)
print(pg)

# post = {
# 'mode' : 'search-advanced',
# 'series-type' : {'Translated' : 'included'},
# 'tag-category' : {
# 'ability-steal' : 'included',
# 'virtual-reality' : 'excluded'
# },
# 'sort-mode' : "update",
# 'chapter-limits' : [40, 0],
# 'mode' : 'search-title',
# 'title' : "",
# }
# print("Request: ", post)
# pg = wg.getpage("http://127.0.0.1:5000/api", postJson=post)
# print(pg)

post = {
'mode' : 'search-advanced',
'series-type' : {'Translated' : 'included'},
'tag-category' : {
'litrpg' : 'included',
},
'sort-mode' : "update",
'chapter-limits' : [40, 0],
}
print("Request: ", post)
pg = wg.getpage("http://127.0.0.1:5000/api", postJson=post)
print(pg)


if __name__ == "__main__":
test()

0 comments on commit fd35765

Please sign in to comment.