Roberto Rosario
58bcf20a46
Remove tests * imports
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-08-29 23:10:28 -04:00
Roberto Rosario
a250919acc
Merge remote-tracking branch 'origin/versions/micro' into features/micro_merge
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-08-25 23:48:12 -04:00
Roberto Rosario
38980e5f75
Rename test method names for clarity
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-08-25 22:06:34 -04:00
Roberto Rosario
e7faece342
Reorganize and improve checkouts tests
...
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2019-08-21 04:25:56 -04:00
Roberto Rosario
e2f2181ebb
Complete multiple check in/out support
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-07-12 04:49:39 -04:00
Roberto Rosario
74c97314d7
Code style cleanups
...
Add keyword arguments. Sort arguments and models.
Move literals to their own module. Prepend handler_ to
signal handlers.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-26 03:32: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
456c322c19
Move add_to_class functions to their own module
...
* The new module is called methods.py and found on each app.
* Add keyword arguments to add_to_class instances.
* Remove catch all exception handling for the check in and
check out views.
* Improve checkouts tests code reducing redundant code.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-11 18:03:53 -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
586d41eeff
Backport test case improvements
...
Add random primary key mixin. Split test case code into mixins.
Make the view test case and the API test cases part of the same
class hierachy. Update tests that failed due to the new import
locations.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-02 02:31:35 -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
48e7b7970c
Speed up tests.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-23 00:17:53 -04:00
Roberto Rosario
ec223dd54d
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-27 02:08:39 -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
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
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
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
da4c41c5b2
Change the way new document version are blocked, moving the logic to the documents app from the checkouts app signal handler. Disable the upload new document version button and have the new version upload view redirect to the document version list with a message. GitLab issue #231 .
2015-10-23 06:06:59 -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
86ff835839
PEP8 Cleanups.
2015-10-07 22:24:44 -04:00
Roberto Rosario
ba841c10f8
Use small sample document for checkout app tests.
2015-09-19 23:37:27 -04:00
Roberto Rosario
6ca6cd9f21
PEP8 Cleanusp (549 warnings).
2015-09-16 04:15:10 -04:00
Roberto Rosario
6a10c6e19b
Add tests for the checkouts app.
2015-09-16 03:46:10 -04:00