Commit Graph

520 Commits

Author SHA1 Message Date
Andreas Zweili
9b8af679ed fix a typo 2019-12-01 22:42:20 +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
5064a3bff5 fix a typo 2019-11-30 16:51:22 +01:00
Andreas Zweili
8f8ff2328e correct the line length 2019-11-30 16:47:49 +01:00
Andreas Zweili
2de2e5ada1 remove unused import 2019-11-30 16:44:03 +01:00
Andreas Zweili
1caf974a0f remove unused import 2019-11-30 16:43:52 +01:00
Andreas Zweili
f93010f97b PEP8 2019-11-30 16:37:20 +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
94d465bd4a add various tools to local requirements 2019-11-30 15:49:55 +01:00
Andreas Zweili
7a6fbe4d7b limit backup_view access 2019-11-30 14:15:20 +01:00
Andreas Zweili
be6c5dab7f add a decorator to check for the customer_view_permission 2019-11-30 14:14:01 +01:00
Andreas Zweili
1d4c4f7857 disable pytest legacy message for junit 2019-11-30 13:31:43 +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
0ff88d3d00 add a viewport option to the base template header 2019-11-28 22:51:22 +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
d93b25c256 add a link to the computer template which links to the customer 2019-09-24 20:31:01 +02: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
Andreas Zweili
53289a58f6 rewrite so that all the views get a pk object 2019-09-03 18:49:44 +02:00
Andreas Zweili
2d06992811 update the net_detail_view to display the NetDetailTable correctly 2019-09-01 12:18:46 +02:00
Andreas Zweili
d0e71ad7fb add the DeviceInNet model to the NetDetailTable 2019-09-01 12:17:37 +02:00
Andreas Zweili
f09a1c9bd6 add a link to the customer view 2019-09-01 12:17:06 +02:00
Andreas Zweili
69d9a24ff7 add a description field 2019-09-01 12:10:51 +02:00
Andreas Zweili
28dcd6834f add various verbose names to the DeviceInNet model 2019-09-01 12:10:33 +02:00
Andreas Zweili
69063bb0a2 add verbose name 2019-09-01 12:09:51 +02:00
Andreas Zweili
37f463361a change the status code check to 404
This view now works correctly and returns a 404 instead of an empty table.
2019-09-01 12:08:23 +02:00
Andreas Zweili
8a21e52ab4 extend the test for the net details 2019-09-01 12:07:56 +02:00
Andreas Zweili
dc273c271e reorder imports 2019-09-01 12:06:27 +02:00
Andreas Zweili
e52ae11e44 remove outdated documentation
literate programming is a nice idea. However IMO it's too much overhead
especially for larger project. I would rather focus on writing tests.
2019-08-30 23:22:19 +02:00
Andreas Zweili
63553a14b4 clean out the README 2019-08-30 23:21:13 +02:00
Andreas Zweili
0ee532950b refactor so that mixer does the work 2019-08-30 23:15:36 +02:00
Andreas Zweili
f55f8ebd84 use a variable for the customer fixture 2019-08-30 23:15:11 +02:00
Andreas Zweili
e314c7bf47 fix the tests so that they are working with postgres 2019-08-30 23:14:47 +02:00
Andreas Zweili
8269dd7656 remove unnecessary object creations 2019-08-30 22:38:31 +02:00
Andreas Zweili
acc1472bd9 add LoginRequiredMixin to view 2019-08-30 22:37:49 +02:00
Andreas Zweili
5ab7bf978a implement pytest-xdist for the Docker tests
This speeds up testing quite a bit
2019-08-30 22:37:16 +02:00