Roberto Rosario
95a1df8072
Backport common mixin and generics improvements
...
* Rename get_object_list to get_source_queryset.
* Add uniqueness validation to SingleObjectCreateView.
* Remove MultipleInstanceActionMixin.
* Backport MultipleObjectMixin improvements.
* Remove ObjectListPermissionFilterMixin.
* Add and improve tests.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-06 02:07:35 -04:00
Roberto Rosario
0267c79b07
Backport test improvements
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-20 02:39:57 -04:00
Roberto Rosario
0d2a827413
Update DocumentVersionSignatureCreateForm
...
Use FilteredSelectionForm. Improve document signatures tests.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-15 02:29:08 -04:00
Roberto Rosario
0188afcd54
Consolidate repeated test user logins
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-11 23:14:16 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Roberto Rosario
a99b044555
Code style improvement. Test code consolidation. PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-06 02:13:36 -04:00
Roberto Rosario
4eab4670be
Unify tests that use upload documents. Add explicit mode when opening a file.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-06 03:38:17 -04:00
Roberto Rosario
41b8d6157a
Update tests to rely less on view response text.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-30 03:50:37 -04:00
Roberto Rosario
48e7b7970c
Speed up tests.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-23 00:17:53 -04:00
Michael Price
96836065a8
Split document.tests.test_views.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:19:07 -04:00
Michael Price
974fa8e210
Fix super class name.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:26:02 -04:00
Michael Price
fd9a7217e9
Reduce repeated code in test.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:25:18 -04:00
Roberto Rosario
5225d8d068
PEP8 cleanups
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-31 03:21:56 -04:00
Roberto Rosario
2052caada4
Remove PreserveGetQuerySet mixin. Update SingleObjectList and
...
MultipleObjectFormActionView views to use a new get_object_list method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-16 22:12:24 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
922492169f
Fix typos in tests.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-17 21:18:56 -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
2d7dc91928
Fix path of test document for the document signatures app.
2016-12-22 03:36:15 -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
3db472b0cd
Update the expected HTML content type of failing view tests.
2016-10-24 02:26:43 -04:00
Roberto Rosario
063b325986
Fix file descriptor leak in document signature download test.
2016-06-28 03:01:29 -04:00
Roberto Rosario
23f40ac4aa
PEP8 cleanups.
2016-04-27 20:31:02 -04:00
Roberto Rosario
c6fb008562
Workaround problem with gpg embedded signatures corrupting the source file by using clearsign=False by default.
2016-04-01 23:28:34 -04:00
Roberto Rosario
9a0dd8c192
Add embedded signing test.
2016-04-01 12:43:06 -04:00
Roberto Rosario
09b71144b6
Add support for signing documents from the UI. Mayan EDMS is now in the major leagues :)
2016-03-30 03:47:58 -04:00
Roberto Rosario
7da6cf1863
Add view, task and post upgrade signal handler to verify all documents for embedded signatures.
2016-03-29 20:13:58 -04:00
Roberto Rosario
d83a80c65b
Add document signature app link tests.
2016-03-29 16:28:24 -04:00
Roberto Rosario
0783806fd1
Add signature deletion view tests.
2016-03-29 13:52:35 -04:00
Roberto Rosario
b9d75e525f
Convert the signature download view to CBV and add corresponding test.
2016-03-29 05:12:04 -04:00
Roberto Rosario
e5c47f16d4
Update document version signature upload view to CBV and add test.
2016-03-28 14:56:49 -04:00
Roberto Rosario
35df61bca1
Add view test for the document signatures app.
2016-03-27 03:29:19 -04:00
Roberto Rosario
fa1450fe5a
PEP8 cleanups.
2016-03-27 03:27:56 -04:00
Roberto Rosario
5de63c4477
Add support for verifying and unverifying signatures after a key is added or deleted.
2016-03-26 04:23:16 -04:00
Roberto Rosario
355190e919
Start of document_signatures app refactor.
2016-03-25 04:07:57 -04:00
Roberto Rosario
d41dac5587
Add support for verification of detached signatures.
2016-03-24 00:27:49 -04:00
Roberto Rosario
cbc1f12bf6
Simplify tests teatDown method.
2015-11-01 02:57:55 -04:00
Roberto Rosario
6ccfaf59f8
Add 1 second delay to workaround MySQL <5.6.4 not storing millisecond time data which is used to determine lastest version of a document.
2015-09-21 04:19:57 -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