Commit Graph

20 Commits

Author SHA1 Message Date
Justin !
c6cf91a40d Fix pep8 errors 2020-11-11 22:23:29 +01:00
Jelle van der Waa
e58c11fd52 tests: add test for pgp_import keys
Add a test to check the pgp_import functionality with one key, by
patching call_pgp so there is no need of a local pacman keyring.
2019-02-09 16:13:14 +01:00
Jelle van der Waa
da18435177
switch to python3's buildin mock
Instead of using a python module use the build-in mock and remove the
module from requirements.txt
2019-01-28 21:02:39 +01:00
Jelle van der Waa
86f5b0ad27 In Python 3.2 assertItemsEqual is replaced by assertCountEqual 2019-01-21 21:19:58 +01:00
Jelle van der Waa
4572b1f3a7 devel: fix class name in test 2018-11-30 21:03:03 +01:00
Jelle van der Waa
890937ac9f devel: add pgp_import basic test 2018-11-30 21:02:53 +01:00
Jelle van der Waa
cdce8a4f88 deve: test listing actual developers 2018-11-23 20:46:40 +01:00
Jelle van der Waa
68e96cb4a1 devel: Add test for unsupported architecture 2018-11-20 22:34:04 +01:00
Jelle van der Waa
41350ba47f Add retire_user command 2018-11-02 17:38:46 +01:00
Jelle van der Waa
24d6042e3e devel: Add more coverage for devel.utils 2018-09-23 21:56:48 +02:00
Jelle van der Waa
d1e272d19b devel: Add test for rematch_developers 2018-08-12 19:54:58 +02:00
Jelle van der Waa
d7bac1cf28 Add tests for devel clocks 2018-07-29 22:20:52 +02:00
Jelle van der Waa
6ceb818145 devel: reporead remove old flagrequests
When updating a package in our repository remove any old 'flagged out of
date' requests.
2018-07-13 22:08:37 +02:00
Jelle van der Waa
c976d7eb30 devel: Templatetest should be a SimpleTest
The test uses database queries and should therefore be a TestCase.
2018-04-08 12:51:19 +02:00
Johannes Löthberg
f59caea0df devel/tests/test_user: Fix tests to now expect a relative URL
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08 12:51:19 +02:00
Johannes Löthberg
6cb364e1e1 Fix reporead test for new error message
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08 12:51:19 +02:00
Jelle van der Waa
b63ebfe76b devel: tests visitting reports pages
Add a simple test to fetch the reports pages in /devel and verify that
the http status is ok.
2018-03-26 22:48:24 +02:00
jelle van der Waa
f42f357fdf Mirror tests (#78)
* 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.
2018-01-22 12:41:39 -05:00
Jelle van der Waa
5869613217 devel: remove unused variables/imports 2017-08-28 21:06:36 +02:00
Jelle van der Waa
840ff3684d devel: Add reporead test
Add a test for reporead import database functionality. Move tests for
devel to a separate directory and depend on mock for patching the
logging functonality. (Included by default in Python 3)
2017-08-25 18:35:39 +02:00