Roberto Rosario
793fd74d7f
Fix tests.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-02 01:16:31 -04:00
Roberto Rosario
70dfb1561d
Refactor the metadata API to conform to best practices.
...
Perform model validation on document type metadata type and
document type API endpoints.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-23 02:13:59 -04:00
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
b58fa7e241
Return metadata type lookup values as list of unicode not list of strings.
...
Fixed GitLab issue #310 , thank for @fordguo for the find and fix suggestion.
2017-02-03 16:20:45 -04:00
Roberto Rosario
5f99b123d7
Merge branch 'master' into master_merge
2017-02-03 14:08:34 -04:00
Roberto Rosario
1030db134b
Add metadata type list, patch and detail API view tests.
2017-02-02 01:08:07 -04:00
Roberto Rosario
f5660cd629
Update all test for 100% passed (348 tests).
2017-01-14 17:43: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
5a15a34818
Add document metadata API tests. Fix document metadata list API view.
2016-05-10 18:57:50 -04:00
Roberto Rosario
a817aa887f
Add document type metadata type API tests. Improve document type metadata type delete API view.
2016-05-10 16:52:29 -04:00
Roberto Rosario
f4a415a3e8
Add metadata type API tests.
2016-05-10 01:11:38 -04:00
Roberto Rosario
0ecfb83d14
Fix metadata edit view test.
2016-03-15 19:03:42 -04:00
Roberto Rosario
60b7ed6a6d
PEP8 cleanups
2016-03-10 03:35:15 -04:00
Roberto Rosario
59624d75cb
Fix GitLab issue #250 "Empty optional lookup metadata trigger validation error". Thanks to LeVon Smoker for the find and for the proposed fix.
...
Reference: https://groups.google.com/forum/#!topic/mayan-edms/VUGRl4xX-1c
2016-02-09 13:00:45 -04:00
Roberto Rosario
460076004a
Fix GitLab issue #245 , "Add multiple metadata not possible"
2016-01-12 03:48:21 -04:00
Roberto Rosario
79c5a103a2
Fix GitLab issue #243 , "System allows a user to skip entering values for a required metadata field while uploading a new document".
2016-01-12 02:40:47 -04:00
Roberto Rosario
23270e948c
PEP8 cleanups.
2015-11-02 17:40:27 -04:00
Roberto Rosario
750127eb92
Raise PermissionDenied on single document access, show 'Selected at least 1 document' when the multidocument view is used. GL issue #240 .
2015-11-01 03:06:40 -04:00
Roberto Rosario
cbc1f12bf6
Simplify tests teatDown method.
2015-11-01 02:57:55 -04:00
Roberto Rosario
a1a0a6da52
PEP8 Cleanups.
2015-10-28 02:14:48 -04:00
Roberto Rosario
414c55f824
Update the metadata_add and metadata_remove views to use the new ACL filter_by_access code. Update and improve tests.
2015-10-23 02:52:27 -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
bfe621ba89
PEP8 updates.
2015-10-19 01:27:26 -04:00
Roberto Rosario
8744bd82ee
Fix allow editing a required metadata after changing the document type. Closes issue GL #204 .
2015-10-15 16:40:35 -04:00
Roberto Rosario
07f02b8f0b
Add tests for the remove metadata view.
2015-10-10 02:45:00 -04:00
Roberto Rosario
6ca6cd9f21
PEP8 Cleanusp (549 warnings).
2015-09-16 04:15:10 -04:00
Roberto Rosario
3e3eca4c0e
Update all tests to use setting value overriding.
2015-09-06 04:01:40 -04:00
Roberto Rosario
7a45164251
PEP8 cleanups.
2015-08-25 19:17:55 -04:00
Roberto Rosario
9599a3f8ab
Split metadata validators in validators and parsers. Move document and upload wizard metadata validation logic to model. Add metadata tests.
2015-08-20 04:37:49 -04:00