Commit Graph

45 Commits

Author SHA1 Message Date
Andreas Zweili
cfb452e55e add a link to users to the customer_table_view 2019-12-30 11:00:15 +01:00
Andreas Zweili
fd4b0564d4 check for cell contents in test_customer_list_view 2019-12-30 10:56:32 +01:00
Andreas Zweili
b0aaa25765 make licenses unique to avoid UniqueConstraint 2019-12-30 01:45:26 +01:00
Andreas Zweili
ba61934b6b add license models 2019-12-29 23:54:27 +01:00
Andreas Zweili
045c8e61de extend backup_detail_view to show the target device 2019-12-29 15:17:29 +01:00
Andreas Zweili
117fbaf084 test for 404 error for non existent backup 2019-12-29 14:03:09 +01:00
Andreas Zweili
fd2121ddeb add view_permission decorator to backup_detail_view 2019-12-29 14:02:25 +01:00
Andreas Zweili
a8eeab0a1e add test_customer_list_view_multip_customers 2019-12-28 15:38:17 +01:00
Andreas Zweili
faa358fd1b add test_customer_device_table_multiple_devices 2019-12-28 15:38:00 +01:00
Andreas Zweili
f4604ba788 add test_customer_computer_table_multiple_computers 2019-12-28 15:37:27 +01:00
Andreas Zweili
6e84d26e0f move the string conversion to the helper function 2019-12-28 15:37:09 +01:00
Andreas Zweili
5b1e43499a correct test_device_detail_view 2019-12-28 15:18:59 +01:00
Andreas Zweili
cc17502806 extend the test_device_detail_view 2019-12-28 15:07:59 +01:00
Andreas Zweili
12b510e437 remove the name reference from test_computer_detail_view
This should make the test more flexible and actually tests for the string
representation of the object rather if the name exists.
In the template is use actually that and not the name.
2019-12-28 15:06:35 +01:00
Andreas Zweili
9e79b40519 add more tests to test_customer_device_table 2019-12-28 13:40:35 +01:00
Andreas Zweili
08baff93ad remove an unnused variable 2019-12-28 13:15:11 +01:00
Andreas Zweili
e158cc7b36 change the RAID model so that it uses django-nested-admin 2019-12-27 18:28:30 +01:00
Andreas Zweili
4b1d1dace8 add permissions decorators to two views 2019-12-27 00:47:25 +01:00
Andreas Zweili
3d52e62274 add tests vor net_table_view and net_detail_view 2019-12-11 18:06:31 +01:00
Andreas Zweili
4321eb433a change test name 2019-12-11 18:04:37 +01:00
Andreas Zweili
0571f6863a implement the net detail view 2019-12-11 17:57:48 +01:00
Andreas Zweili
148d388bd9 add test for multiple backups in backup table 2019-12-10 19:21:51 +01:00
Andreas Zweili
e7bee10750 change test_computer_detail_view_no_permission to 403
The view should actually block unauthorized access. Which this test confirms
and now works properly.
2019-12-03 22:18:14 +01:00
Andreas Zweili
70ccf4d607 add test for computer_detail_view without permission 2019-12-01 22:28:25 +01:00
Andreas Zweili
cb753b3ed2 add test for computer_detail_view with CPU relation 2019-12-01 22:27:25 +01:00
Andreas Zweili
f1b20e3c28 add test for computer_detail_view with RAID relation 2019-12-01 22:26:52 +01:00
Andreas Zweili
5d005499da add test for computer_detail_view with a RAM relation 2019-12-01 22:17:54 +01:00
Andreas Zweili
9827a04c56 add test for the computer_detail_view 2019-12-01 22:17:29 +01:00
Andreas Zweili
2de2e5ada1 remove unused import 2019-11-30 16:44:03 +01:00
Andreas Zweili
2185332d49 let mixer choose the customer 2019-11-30 16:37:07 +01:00
Andreas Zweili
6e17f41d83 rewrite the test to actually test the computer view
For some reason this test was testing the customer detail view but this is now
fixed.
2019-11-30 16:36:13 +01:00
Andreas Zweili
e8bf02ae86 remove unused imports 2019-11-30 16:09:18 +01:00
Andreas Zweili
5d2445f5d6 remove unused variables 2019-11-30 16:09:07 +01:00
Andreas Zweili
cbae8c9711 PEP8 2019-11-30 16:08:53 +01:00
Andreas Zweili
04eac793d6 import helper directly
this way I don't have to clean unused helper imports
2019-11-30 16:07:55 +01:00
Andreas Zweili
240028cdd3 remove unused import 2019-11-30 15:54:00 +01:00
Andreas Zweili
f00bc6b78b PEP8 2019-11-30 15:53:50 +01:00
Andreas Zweili
eb9b790f9a remove unused variables 2019-11-30 15:52:49 +01:00
Andreas Zweili
7a6fbe4d7b limit backup_view access 2019-11-30 14:15:20 +01:00
Andreas Zweili
005b521be7 add a computer object to the test 2019-11-30 13:30:59 +01:00
Andreas Zweili
6c4966b6d8 Merge branch 'master' into backup 2019-11-28 22:51:51 +01:00
Andreas Zweili
f9261c08c8 remove a debugging print statement 2019-11-28 22:51:04 +01:00
Andreas Zweili
88a20d8a05 fix the net_detail_view tests
I forgot to use the objects.create parameters function. This way the object
never got added to the database, therefore it never showed in the
content.response. And since I use the admin interface when testing manually,
which creates the objects slightly different and correctly the error never
showed up when doing it by hand.
2019-11-28 22:48:45 +01:00
Andreas Zweili
a98dd4f2b0 add a backups table view 2019-09-24 20:30:43 +02:00
Andreas Zweili
ba20a056c3 split the view tests into multiple files 2019-09-09 10:59:28 +02:00