[arch-projects] [archweb] [PATCH 2/2] mirrorlist: Complete /all/https success test case

2018-04-21 Thread Genki Sky via arch-projects
Also, remove test_generate(), as it was testing no more than test_mirrorlist_filter() already was. Signed-off-by: Genki Sky --- mirrors/tests/test_mirrorlist.py | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mirrors/tests/test_mirrorlist.py

[arch-projects] [archweb] [PATCH 0/2] mirrorlist: Accept GET parameter filters, improve tests

2018-04-21 Thread Genki Sky via arch-projects
Hello, please find the following patches. One fixes a bug I noticed where the filter URLs generated by the [mirrorlist] form were not filtering as they should. While fixing this bug, I also improved (I hope!) the testing in the area. Let me know if I'm missing anything. I ran all the test cases,

[arch-projects] [archweb] [PATCH 1/2] mirrorlist: Accept GET parameters as filters

2018-04-21 Thread Genki Sky via arch-projects
This fixes a regression. Originally request.REQUEST was used, but django 1.9 removed this. In its stead, request.POST was used unconditionally. However, this results in any GET request returning *all* mirrors, rather than filtering as requested in the parameters. This patch uses POST or GET based