Commit Graph

281 Commits

Author SHA1 Message Date
Andreas Zweili 521aaef946 run django with gunicorn 2019-08-11 18:37:37 +02:00
Andreas Zweili 32df8c464e update the readme 2019-08-11 18:35:41 +02:00
Andreas Zweili 9778d60f51 Revert "remove the production settings"
This reverts commit d8b09fd735.
2019-08-11 18:14:18 +02:00
Andreas Zweili b9efd4ed60 move some settings to environment variables 2019-08-10 16:50:35 +02:00
Andreas Zweili d8b09fd735 remove the production settings
they are the same as the docker settings
2019-08-10 15:28:52 +02:00
Andreas Zweili fa4682f674 remove the Vagrantfile since it's not used anymore 2019-08-10 15:27:51 +02:00
Andreas Zweili 27906f6923 remove the pytest config 2019-08-10 15:27:35 +02:00
Andreas Zweili 5ab33e6168 add task to create a local developemenet environment 2019-08-10 15:14:36 +02:00
Andreas Zweili 2da0dfabb0 remove unused makefile part 2019-08-10 15:13:46 +02:00
Andreas Zweili 033c3fe8df make sure that the tests generate a coverage report 2019-08-10 15:09:05 +02:00
Andreas Zweili bce41c1c47 extend the clean up task 2019-08-10 15:08:52 +02:00
Andreas Zweili 3cf672edea remove the local server from the Makefile
For improved consistency it's better if I only develop in Docker with Postgres
instead of the local server with sqlite
2019-08-10 15:05:35 +02:00
Andreas Zweili 43c334745d move the pytest requirements to the base file 2019-08-10 15:05:03 +02:00
Andreas Zweili 532fad6bd3 remove the production requirements
For the moment these aren't needed
2019-08-10 15:03:34 +02:00
Andreas Zweili 8f852733ef add a temp file to mark the first run 2019-08-10 15:03:03 +02:00
Andreas Zweili e5396aea5f add config for coverage 2019-08-10 13:56:19 +02:00
Andreas Zweili 7969663374 add pytest-cov to the docker requirements 2019-08-10 13:55:34 +02:00
Andreas Zweili c1631fe76e use a in memory database for local testing 2019-08-10 13:55:15 +02:00
Andreas Zweili 3833e02e60 add environment variable to emacs config 2019-08-10 13:54:55 +02:00
Andreas Zweili 7d1d606f6e ignore htmlcov folder 2019-08-10 13:48:29 +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 976321a39e PEP8 2019-08-07 22:38:30 +02:00
Andreas Zweili 1b8a8fc00f make sure only users with permissions can view customers 2019-08-07 22:37:59 +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 0fccb6f886 use get_object_or_404 with ConnectedDevice 2019-08-06 21:46:53 +02:00
Andreas Zweili 81b35d9772 use get_object_or_404 with device 2019-08-06 21:46:32 +02:00
Andreas Zweili 4fe8f4be6e test computer not found case 2019-08-06 21:41:55 +02:00
Andreas Zweili e8c28e41d5 use get_object_or_404 in computer_view_permission 2019-08-06 21:41:31 +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 82f25255d4 only allow logged in users to acces pages 2019-08-04 22:15:30 +02:00
Andreas Zweili 671c7c1d8e add trailing slash to url 2019-08-04 22:14:20 +02:00
Andreas Zweili 3933e04e9c refactor the tests 2019-08-04 20:50:10 +02:00
Andreas Zweili e3ca65b61b add pylint as dependency 2019-08-04 20:49:20 +02:00
Andreas Zweili b022b1747d refacture the fixtures
the fixtures where overcomplicated and should be easier.
2019-08-04 20:46:02 +02:00
Andreas Zweili 5317f42349 extend the views with login required 2019-08-04 20:44:37 +02:00
Andreas Zweili 74677e6c2d rearrange the urls 2019-08-04 20:44:19 +02:00
Andreas Zweili b2281be9cd extend gitignore 2019-08-04 20:43:56 +02:00