Commit Graph

47 Commits

Author SHA1 Message Date
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 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 e012e1d576 add a computer to test 2019-08-30 21:04:00 +02:00
Andreas Zweili 605ad94acc remove unused code 2019-08-28 23:09:18 +02:00
Andreas Zweili 410a271328 create the fixture customer with mixer 2019-08-28 23:09:06 +02:00
Andreas Zweili 0e0870f2a7 remove fixture from test
This test should just return 200 even if there aren't any customers.
2019-08-28 22:29:56 +02:00
Andreas Zweili 5cdbf760e0 improve all tests which check for 302 2019-08-15 18:40:29 +02:00
Andreas Zweili 0409aef33c finalize test_computer_list_view 2019-08-11 22:54:33 +02:00
Andreas Zweili 1a92ce4e9a finalize test_computer_list_view_no_computers 2019-08-11 22:53:54 +02:00
Andreas Zweili c87c762ab1 finalize test_backup_detail_view_not_found 2019-08-11 22:52:37 +02:00
Andreas Zweili 1dceb67d53 finalize test_backup_detail_view 2019-08-11 22:52:19 +02:00
Andreas Zweili e6be2f3504 finalize test_net_detail_view_not_found 2019-08-11 22:49:29 +02:00
Andreas Zweili 9550e9b509 finalize test for test_net_detail_view 2019-08-11 21:44:13 +02:00
Andreas Zweili bfb29e9de8 replace object creations with mixer 2019-08-11 21:36:29 +02:00
Andreas Zweili 210f583851 implement helper function 2019-08-11 21:35:49 +02:00
Andreas Zweili efd33d49a6 finalize test for cpu relation 2019-08-11 20:57:37 +02:00
Andreas Zweili e188b7ded4 finalize test for raid relation 2019-08-11 20:57:17 +02:00
Andreas Zweili 2aac3f53ed add test for ram relation 2019-08-11 20:56:39 +02:00
Andreas Zweili e1edc3d238 use mixer in test_computer_detail_view 2019-08-11 20:55:01 +02:00
Andreas Zweili 2864649766 finalize test_customer_computer_table_no_computer 2019-08-11 20:54:39 +02:00
Andreas Zweili 1a71d65c12 finalize test_customer_computer_table 2019-08-11 20:54:18 +02:00
Andreas Zweili 37e9f58be4 finalize test_customer_detail_view_no_permissions 2019-08-11 20:42:13 +02:00
Andreas Zweili c3be6198ed finalize test_customer_list_view 2019-08-11 20:41:43 +02:00
Andreas Zweili 64cf7e91f5 add mixer to the tests 2019-08-11 20:41:17 +02:00
Andreas Zweili 14ff7913de enable database access for the whole test_view.py file 2019-08-11 20:40:33 +02:00
Andreas Zweili 3daf05a5c3 add check for status codes
When there is a 404 then there wouldn't be a "Novartis" string present so the
test would still pass.
2019-08-07 22:48:38 +02:00
Andreas Zweili 00725cec8a finalise test_customer_list_view_no_customer 2019-08-07 22:41:06 +02:00
Andreas Zweili a6ea6c545f add customer view permission test 2019-08-07 22:37:35 +02:00
Andreas Zweili 871562d2c8 remove an unused print statement 2019-08-07 18:19:49 +02:00
Andreas Zweili d8e3459778 remove unused print 2019-08-06 22:34:29 +02:00
Andreas Zweili bbb626e1b7 remove unnused code 2019-08-06 22:23:53 +02:00
Andreas Zweili 0e0e653b4f mark various tests as WIP 2019-08-06 22:23:39 +02:00
Andreas Zweili 373d4aa5f6 add test for empty customer list 2019-08-06 22:22:24 +02:00
Andreas Zweili 448fa67364 add tests for computer/hardware relations 2019-08-06 22:22:06 +02:00
Andreas Zweili 710224992f add tests for computer_list_view 2019-08-06 22:13:15 +02:00
Andreas Zweili 8ad61288ba remove unused code 2019-08-06 22:12:44 +02:00
Andreas Zweili 6d3f177b71 add tests for Net and Backup views 2019-08-06 22:03:46 +02:00
Andreas Zweili d2a54d265a add tests for device views 2019-08-06 21:48:29 +02:00
Andreas Zweili 4fe8f4be6e test computer not found case 2019-08-06 21:41:55 +02:00
Andreas Zweili 4910a40336 remove unnused variables 2019-08-06 21:03:58 +02:00
Andreas Zweili ac63104157 use objects.create whereever possible 2019-08-06 20:52:05 +02:00
Andreas Zweili d920a9ba53 extend tests 2019-08-04 22:17:02 +02:00
Andreas Zweili 3933e04e9c refactor the tests 2019-08-04 20:50:10 +02:00