Roberto Rosario
5f9a052236
Improve wizard upload view test.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-13 18:21:19 -04:00
Roberto Rosario
ba6387021e
Fix document print view, page URL resolve.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-13 17:53:33 -04:00
Roberto Rosario
d4e1a506ed
Add duplicated document scan support.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 02:56:35 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
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
610e10e85a
Include django-downloadview's assert_download_response as a
...
BaseTest member.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-01 00:54:21 -04:00
Roberto Rosario
538b66b238
Add test document label explicitly.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-21 15:26:16 -04:00
Roberto Rosario
0041b2118b
Improve rendering of documents with no pages.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-16 17:22:00 -04:00
Roberto Rosario
196d00897d
Fix overwritten document app test.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-06 20:30:33 -04:00
Roberto Rosario
5798cabd7c
Add support to update the document indexes from workflow state changes.
...
Add a new workflow field called internal_name for easier workflow
reference in document index templates.
Generalize the PropertyHelper class.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-06 20:07:15 -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
81e090f375
Update the document app API endpoints.
...
Use resource/<pk>/subresource/<pk> scheme.
2017-02-14 02:42:40 -04:00
Roberto Rosario
ce6f59b9bd
Merge remote-tracking branch 'origin/master' into feature/merge_master
2017-02-13 21:00:56 -04:00
Roberto Rosario
92ac4dc2f7
Add writable versions of the Document and Document Type serializers (GitLab issues #348 and #349 ).
2017-02-12 03:11:24 -04:00
Roberto Rosario
7340989dc5
Fix trashed document list API view. Add addition trashed document API tests.
2017-02-07 20:46:30 -04:00
Roberto Rosario
5f99b123d7
Merge branch 'master' into master_merge
2017-02-03 14:08:34 -04:00
Roberto Rosario
2f67f0cffa
Improve document version comment API tests.
...
Add document description update API tests.
GitLab issues #348 and #349 .
2017-01-28 18:15:25 -04:00
Roberto Rosario
b55b6dc117
Add API test for document version comment editing via PUT and PATCH.
...
GitLab issue #348 .
2017-01-28 11:20:24 -04:00
Roberto Rosario
5007d77425
PEP8 cleanups.
2017-01-18 02:02:32 -04:00
Roberto Rosario
bb8b606c92
Add additional tests.
2017-01-18 01:59:00 -04:00
Roberto Rosario
ea64515490
Fix and streamline document app tests.
2017-01-07 01:53:05 -04:00
Roberto Rosario
92130608fb
Integrate sample documents into distributable code.
...
This is to allow tests to run in production.
2016-12-22 03:14:43 -04:00
Roberto Rosario
1e194e04fa
Move new version creation blocking from the documents app to the checkouts app.
...
Closes GitLab #294 .
2016-12-22 01:45:43 -04:00
Roberto Rosario
2b335e9454
Add test for deleted document restore link.
2016-11-03 15:49:56 -04:00
Roberto Rosario
2777dc1070
Convert document page zoom and rotation views to CBV.
2016-11-02 19:01:30 -04:00
Roberto Rosario
c0194c63dc
Refactor document page image generation and transformation classes
...
to cache all transformed versions of a document page.
2016-11-02 02:34:57 -04:00
Roberto Rosario
6e3d99670c
Complete conversion of download views to CBV views using django-downloadview.
...
This also removes dependency on the filetransfers library.
2016-10-31 01:00:35 -04:00
Roberto Rosario
3db472b0cd
Update the expected HTML content type of failing view tests.
2016-10-24 02:26:43 -04:00
Roberto Rosario
bf29846b54
Set the proper expected response content type in the document download views tests.
2016-10-21 04:27:41 -04:00
Roberto Rosario
97089670ee
Change the file descriptor check to use open files instead. Add decorator to skip open file check. GitLab issue #309 .
2016-06-29 18:40:15 -04:00
Roberto Rosario
5ac1276f25
Add base test class that includes unclaimed temporary and file descriptor test mixins. GitLab issue #309 .
2016-06-27 19:20:42 -04:00
Roberto Rosario
39ba601074
Fix API endpoint view name in trashed document API tests.
2016-05-11 00:40:42 -04:00
Roberto Rosario
23f40ac4aa
PEP8 cleanups.
2016-04-27 20:31:02 -04:00
Roberto Rosario
33aefdaef7
Add document download and document preview event logging. Add corresponding tests. Closes GitLab issue #261 .
2016-04-04 13:49:14 -04:00
Roberto Rosario
fa1450fe5a
PEP8 cleanups.
2016-03-27 03:27:56 -04:00
Roberto Rosario
dda0bbdba9
Add test for the document type quick label creation view.
2016-03-21 16:24:41 -04:00
Roberto Rosario
37d6070cab
Convert the document version revert view to CBV. Add document version revert view tests.
2016-03-21 02:37:39 -04:00
Roberto Rosario
8302e13d80
Add deleted document list filtering tests.
2016-03-18 18:47:32 -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
e10ff8e8bd
Fix tests.
2016-03-10 03:34:50 -04:00
Roberto Rosario
ce6a1f4020
Merge branch 'master' into feature/merge_master
2016-03-03 16:46:11 -04:00
Roberto Rosario
0295f7feb5
Add 2 second delay to workaround MySQL not storing millisecond part of timestamp.
2016-02-10 12:11:51 -04:00
Roberto Rosario
7db560d799
Increase delay in test from 1 second to 2 seconds to workaround MySQL truncating millisecond part of timestamp.
2016-02-10 12:10:42 -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
1867c589f5
Remove admin user tests for the documents app views. SPlit all view test into priviledged and unpriviledged tests.
2015-11-04 01:43:44 -04:00
Roberto Rosario
13b167abc9
Split mode documents app view tests into test with and without permissions.
2015-11-03 23:32:09 -04:00
Roberto Rosario
3a6cf48068
Return PermissionDenied when user has no sufficient permission and accessting one document.
2015-11-03 16:31:03 -04:00
Roberto Rosario
8a50721117
Expand and improve the documents app view tests.
2015-11-03 01:37:35 -04:00
Roberto Rosario
26250412ce
Add test for the document version revert and document version download links. GL issue #230 .
2015-10-28 01:33:43 -04:00