nyaa/nyaa
Kfir Hadas c466e76471 Fix RFC822 filters + More tests (#257)
* Make rfc822 filters compatible with Windows systems.

.strftime() is relative to the system it's being run on.
UNIX has '%s' for seconds since the EPOCH, Windows doesn't (ValueError).
Solution: use .timestamp() to achieve the same result on both platforms.
This also allows us to drop the float() around it, since it returns a float.

* Start testing filters

* Add placeholders for more tests

* Make 'tests' folder a Python package

Now you can run tests with just `pytest tests`

* Update readme and travis config

* Test timesince()

* Update and organize .gitignore

Deleted: (nothing)
Added: Coverage files, .idea\

* Test filter_truthy, category_name

* Tests for backend.py

* Tests for bencode.py

* Move (empty) test_models.py to tests package

* Tests for utils.py

* Fixes for flattenDict

* Change name to `flatten_dict`
* `newkey` was assigned but never used

* Add a helper class for testing

* Show coverage on Travis

(only Travis for now...)

* Remove IDE

* Use correct assert functions

* Update README.md
2017-07-07 16:14:37 -05:00
..
static Admin Log 2.0 (#283) 2017-07-04 23:13:59 -05:00
templates Change portion of welcome message 2017-07-05 13:15:58 -04:00
__init__.py set noqa to ignore a single error 2017-06-08 04:14:04 +03:00
api_handler.py Lint 2017-06-07 19:38:19 +03:00
backend.py fix race condition? 2017-05-23 15:18:17 +02:00
bencode.py Initial commit. 2017-05-12 20:51:49 +02:00
fix_paginate.py Optimize MySQL COUNT queries and pagination 2017-05-29 18:27:34 +03:00
forms.py Admin Log 2.0 (#283) 2017-07-04 23:13:59 -05:00
models.py Admin Log 2.0 (#283) 2017-07-04 23:13:59 -05:00
routes.py Fix RFC822 filters + More tests (#257) 2017-07-07 16:14:37 -05:00
search.py [ES Schema change] Multi-field search display_name to match words over ngram limit 2017-06-05 17:29:00 +03:00
torrents.py Resolves #129 and refactored create magnet es naming 2017-05-24 23:19:08 -07:00
utils.py Fix RFC822 filters + More tests (#257) 2017-07-07 16:14:37 -05:00