* Bump psycopg2 for postgresql 10
Update the psycopg2 version to the latest release for postgresql 10
compatibility.
* Bump memcached to the latest stable version
* Update coveragerc to exclude newly located tests
There are now tests under main/tests/* etc, which should be omitted for
coverage.
* omit settings from coverage
settings and local_settings aren't interesting for coverage, omit them.
* remove leftover secure context processor
The secure context processor was used to determine if the cdn served
assets should be loaded over https or http. Since assets are no longer
served with a cdn and the whole site is loaded over https these days,
this code is dead and can be removed.
* packages: Add test for flagging packages out of date
Add simple test cases for flagging packages out of date, should later be
improved to query the Package model for packages and use that data
instead of hardcoding.
This script imports messages from a Maildir folder and creates new
unique Donors based on the name in the subject. The subject also
contains the amount and the email address, which is not stored by
Archweb.
* main: move tests to main/tests
Move the templatetags tests to main/tests/test_templatetags.
* main: Add test for templatetags country
Create a test for the templatetag country_flag.
* main: remove duplicate floatvalue
floatvalue is only used in the mirrors templates and the same exact
function exists in the mirror_status templatetags.
* main: Remove duplicate hours filter
The hours filter is also defined in the mirror_status and only used in
mirrors.
* main: move percentage filter to mirrors
Move the percentage filter to the only user of it and add a test for
basic use cases.
* main: remove duplicate duration implementation
The duration templatetag filter is also defined in mirror_status.py
* templates: remove unrequired import flags
* main: Add missing testcase for country_flag
Add the None test case, so that the function is fully covered.
* todolists: create tests for Todolist model
Add basic tests for the Todolist model
* mirrors: Move tests to mirrors/tests
Move the tests to separate files in mirrors/tests and expand the model
tests with tests for the Mirror class.
* Add CheckLocation test
* mirrors: Add tests for template filters
Include tests for the filters used in the mirrors views.
* devel: Add tests for template filter in_group
Include a test for a simple case of the in_group filter.
* packages: Add test for differences view
Add a simple test to check if the differences view renders.
* packages: Add tests for more urls
Add basic tests for /packages/ related urls.
* mirrors: Add mirrorlist urls
* Add pagination to JSON search form using Paginator
The downside of this is that we can't easily run prefetch_related
anymore, but given the limit I don't suspect this to be a problem.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* packages/views/search: Add appropriate newlines to search_json
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Update package fixture to be the same as devel/fixtures/core.db.tar.gz
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* packages/tests: Add tests for JSON search pagination
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Add mirror detail URLs to JSON output
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Bump mirror details JSON version to 4
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Return different dep types under different keys in JSON results
* packages/utils: Put dependency type list above class
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>