Merge pull request #251 from sharkykh/tests

INITIAL UNIT TESTING FUCK YEAH
This commit is contained in:
Johnny Ding
2017-06-07 23:27:53 -07:00
committed by GitHub
8 changed files with 87 additions and 8 deletions

View File

@@ -70,4 +70,4 @@ assets = Environment(app)
# output='style.css', depends='**/*.scss')
# assets.register('style_all', css)
from nyaa import routes # noqa
from nyaa import routes # noqa E402

View File

@@ -322,7 +322,11 @@ def v2_api_info(torrent_id_or_hash):
'information': torrent.information,
'description': torrent.description,
'stats': {'seeders': torrent.stats.seed_count, 'leechers': torrent.stats.leech_count, 'downloads': torrent.stats.download_count},
'stats': {
'seeders': torrent.stats.seed_count,
'leechers': torrent.stats.leech_count,
'downloads': torrent.stats.download_count
},
'filesize': torrent.filesize,
'files': files,