ae151ed45e
Add assets test suite ( #400 )
...
* Started POM and assets test
* FEAT: Adapt unit tests from RIGS to assets
* CHORE: pep8...
* Added Asset Create and Edit forms
* Add non-cable asset creation test
* CHORE: Frickin pep8...
* Add cable asset creation test
* Basic asset create validation testing
* Asset edit tests are here
A bit dodgy in places but par for the course for me :P
* Add access level tests
* Delete unused code
Much less effort way to increase coverage stats :D
* Add delete sample data test for completeness
Chasing that sweet 100% coverage...
* Add supplier list page + tests
Also fix the supplier page not being ordered alphabetically
* Helps if I add the migration...
* Add supplier create/edit tests
* Asset duplicate tests
Also fixed some random bugs
* Asset search tests
* 404 tests and test that everything requires authentication
* Test visibility of form errors
And fix supplier form not displaying errors correctly!
* Fix broken search test
Co-authored-by: Matthew Smith <mattysmith22@googlemail.com >
2020-02-08 13:52:07 +00:00
David Taylor
f9389e3996
PEP8 all the things
2017-09-22 14:57:14 +01:00
David Taylor
ee930aa86a
Replace assertItemsEqual with assertCountEqual in model tests.
...
While the name is misleading, it does appear that this test does exactly the same as assertItemsEqual: https://docs.python.org/3/library/unittest.html?highlight=assertcountequal#unittest.TestCase.assertCountEqual
2017-09-04 23:19:22 +01:00
David Taylor
3035320e82
Run through 2-to-3 converter. This is not in a working state
2017-09-04 23:19:22 +01:00
David Taylor
34ffd62436
Add many tests for the versioning backend and interfaces
2017-06-21 03:12:26 +01:00
David Taylor
36d258253f
Fix issues caused by dependency upgrades
2017-05-12 21:32:17 +01:00
David Taylor
f8aaf9f36e
Merge branch 'master' into feature/online-auth
...
# Conflicts:
# RIGS/rigboard.py
# RIGS/test_functional.py
# RIGS/urls.py
# requirements.txt
2017-05-12 20:53:00 +01:00
David Taylor
83028418fe
Fix deprecation warnings for django 1.10
2017-05-10 18:30:17 +01:00
Tom Price
56d4e438b6
Fix test missing EventAuthorisation.sent_by
2017-04-11 16:50:49 +01:00
Tom Price
3b2aa02ae5
Add success notification emails.
...
Enable RevisionMixin for EventAuthorisation.
Add signal receivers for RIGS.
Expand RIGS into an explicitly defined app to support signals.
2017-04-10 19:16:45 +01:00
Tom Price
1670b190c2
Add tests for the client side authorisation
2017-04-10 18:11:49 +01:00
Tom Price
c2787d54b0
Add authorisation models.
...
Add EventAuthorisation model + migrations
Add authorised property to Event.
Add appropriate tests
2017-03-29 20:46:40 +01:00
Tom Price
8cfda69717
Set wercker up to use postgres for tests again.
...
Modify the tests to be postgres compatible by using more pointers to things rather than getting them everytime.
2016-03-31 16:03:07 +01:00
Tom Price
b2b8546e3c
Add test for events_in_bounds
2016-03-18 16:41:13 +00:00
Tom Price
2945a607bf
Add more tests for models.Event properties
2016-03-18 16:27:20 +00:00
Tom Price
b7018d5c44
Refactor NoneType test to make use of the __str__ method thus including that method in the test as well.
2015-12-22 23:07:15 +00:00
Tom Price
b933a5322f
Add test to reproduce NoneType exception from #171
2015-12-22 23:01:30 +00:00
Tom Price
2743112f1b
Reformat file to correct standard
2015-12-22 22:59:12 +00:00
David Taylor
a7493d46b5
Updated tests to reflect model changes
2015-07-21 00:17:56 +01:00
Tom Price
ce0ac7f44b
Add missing dry hire 11.
...
Suggest this logic gets looked at. Isn't broken, but not nessecarily correct.
2015-05-31 23:04:29 +01:00
Tom Price
ec424f2db3
Fix for incorrect logic in current dry hires
...
Non booked dryhires never show up in the past even if not checked in.
2015-05-31 23:01:52 +01:00
Tom Price
e2b352557c
Change the way current events are tested
2015-05-31 22:57:17 +01:00
Tom Price
4a8da69686
Add event pricing tests
2015-04-01 17:09:06 +01:00
Tom Price
f8ced4c169
Add item ordering test
2015-03-31 23:43:06 +01:00
Tom Price
b0b438250e
Add item total cost test
2015-03-31 22:13:31 +01:00
Tom Price
29edd92c09
Add person <-> organisations
2015-03-31 22:06:56 +01:00
Tom Price
e2ab112f7b
Add person, organisation related tests
2015-03-31 22:00:35 +01:00
Tom Price
23bf81fb8f
Add reverse relation tests.
...
Add status tests.
2015-03-31 21:56:39 +01:00
Tom Price
ca015c4f94
Add current event events test: FAILING.
2015-03-31 19:05:09 +01:00
Tom Price
22f33013ec
Add events and check count/rig_count
2015-03-31 18:44:45 +01:00
Tom Price
4f6d2333c0
Add VatRate model tests
2015-03-31 18:01:15 +01:00