Commit Graph

23 Commits

Author SHA1 Message Date
Roberto Rosario
80f64d7fcf Add BaseAPITestCase class that invalidates the permission and smart settings caches.
Use BaseAPITestCase for all API test cases.
2017-02-16 21:12:55 -04:00
Roberto Rosario
5ea31554bc Update and fix failing tests. 2017-01-14 03:08:32 -04:00
Roberto Rosario
4e7559d396 Add settings class cache invalidation method. Update common.tests.base.BaseTestCase
class to invalidate settings cache. Update tests using Django's TestCase to
BaseTestCase.
2017-01-14 00:13:35 -04:00
Roberto Rosario
57485a0b58 Folder app test cleanups. 2017-01-07 01:09:47 -04:00
Roberto Rosario
a013ab0bf5 Fix and streamline the folder app view tests. 2017-01-07 01:03:51 -04:00
Roberto Rosario
23f40ac4aa PEP8 cleanups. 2016-04-27 20:31:02 -04:00
Roberto Rosario
c6eea8ba64 Don't perform OCR in folder model tests. 2016-04-27 18:19:30 -04:00
Roberto Rosario
af273fbfc3 Remove the creation of a test user. 2016-04-27 18:10:21 -04:00
Roberto Rosario
c2c95787cb Improve folder and tag creation api test. 2016-03-14 20:38:00 -04:00
Roberto Rosario
9823202405 Remove typecasting of file objects into Django's File class, not needed in Django >1.8.x. 2016-03-14 20:20:54 -04:00
Roberto Rosario
858648782b Update Folder creation and Tag creation API calls to return the id of the created instances. 2016-03-14 04:48:22 -04:00
Roberto Rosario
1c65b389ee Remove concept of ownership from folders by removing the user field.
"Ownership" now is now determined by ACL of a folder, like the rest of the objects in the system.
2016-03-08 01:20:10 -04:00
Roberto Rosario
e85002d4ac Add view test to check for duplicated folder creation. 2016-03-07 17:02:19 -04:00
Roberto Rosario
10eb7d49b2 Update API tests to use login instead of force_authenticate. 2016-02-04 17:39:27 -04:00
Roberto Rosario
2ebb84f18f Remove remaining direct references to the User model. Closes GitLab issue #225. 2016-01-28 05:55:15 -04:00
Roberto Rosario
cbc1f12bf6 Simplify tests teatDown method. 2015-11-01 02:57:55 -04:00
Roberto Rosario
73abe297ee Add .get .post .login method to GenericViewTestCase. Update folder app view tests. 2015-10-22 02:00:02 -04:00
Roberto Rosario
b02cee1759 Update the folder_document_multiple_remove, folder_add_document, folder_add_multiple_documents views to use queryset instead of list of objects. Improve folder app views tests. 2015-10-22 00:17:39 -04:00
Roberto Rosario
ec7460a0fe Update folder_document_remove view work with the ACL queryset only code. 2015-10-21 20:51:11 -04:00
Roberto Rosario
df7a5c6e1c Reorganize tests literals and move then to their respective apps. 2015-10-20 21:14:07 -04:00
Roberto Rosario
6e9c2a14ae Add folder app view tests. 2015-10-17 02:17:36 -04:00
Roberto Rosario
3e3eca4c0e Update all tests to use setting value overriding. 2015-09-06 04:01:40 -04:00
Roberto Rosario
4fb86fba14 Re-estructure tests to cleanup the apps' namespace. 2015-08-18 23:06:26 -04:00