Commit Graph

6 Commits

Author SHA1 Message Date
Jelle van der Waa
6b43ce1407 ruff: enable isort rule 2023-11-03 12:35:59 +01:00
Jelle van der Waa
378d4b0f5d mirrors: convert tests to pytest 2023-02-14 20:22:10 +01:00
Jelle van der Waa
3cef831148 Fix caching issue in test 2018-09-08 17:37:03 +02:00
Jelle van der Waa
ed1f4ce0f3 test: use response.json()
Instead of importing json and loading the response.content using
json.loads use Django's response.json() method.
2018-06-17 22:02:16 +02:00
Jelle van der Waa
538fc2b626 mirrors: Test mirror status with tier specified 2018-03-26 21:20:22 +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