Commit Graph
30 Commits
Author SHA1 Message Date
Nuwan Goonasekera 391d91ebfe Assign random password in user manager if none specified 2020-05-24 23:53:58 +05:30
guerler 905a7d0aa5 Fix message content test in user manager test case 2019-01-10 03:52:39 -05:00
guerler 0ced7d393d Add test cases for user manager 2018-11-28 13:49:56 -05:00
Nicola Soranzo 2cd95c48f6 Fix import order everywhere
- Add flake8-import-order to flake8 Pipfile and remove py27-lint-imports
  and py27-lint-imports-include-list tox envs
- Fix most E201 and E202 errors reported by flake8-import-order v0.15,
  but pin flake8-import-order to v0.14.3 until
  https://github.com/PyCQA/flake8-import-order/issues/123
  is fixed

This let us drop 2 jobs on Travis per each job.
2017-11-14 19:42:39 +00:00
guerler c6c7cb855a Fix failing test 2017-08-30 23:35:39 -04:00
Nicola Soranzo a353b2e88f Fix E127 errors introduced by previous commit
using:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E127 .
```
2017-08-17 11:35:39 +01:00
Nicola Soranzo 21b44bf348 Fix all E201 and E202 style errors
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00
Nicola Soranzo a8746c4f52 Fix import order and Python3 compatibility for test/unit/ 2016-11-16 10:29:09 +00:00
Nicola Soranzo 0e0b773edc Allow '.' and '_' for public names
Fix #2593.
Also standardise error messages.
2016-09-21 15:23:36 +01:00
carlfeberhard 09d10147f9 Tests, user: py3 exception and relative import fix 2016-07-11 15:31:49 -04:00
carlfeberhard f724e84fda API, users: use default to assign username 2016-07-07 11:20:02 -04:00
carlfeberhard 86a3531730 API, users: add deserializer to user manager
- Adds deserialization method for usernames (note: still needs trans)
- Adds tests for deserializer in test_UserManager.py
2016-07-07 10:38:08 -04:00
Nicola Soranzo 9a97a2952f Python3: test/unit/ 2016-06-29 01:55:44 -04:00
carlfeberhard 38a9aa6a5c Managers, users: update serialized key 'requests' to 'has_requests', update test 2015-12-08 11:43:15 -05:00
Nate Coraor f334764627 Egg cleaning in test/ 2015-09-22 10:32:16 -04:00
Nicola Soranzo 9805294f97 Revert "Revert "[WIP] Mega flake8 linting""
This reverts commit 37f1976d38.
2015-07-12 21:25:44 +01:00
Dannon Baker 37f1976d38 Revert "[WIP] Mega flake8 linting" 2015-07-11 13:17:38 -04:00
Bjoern Gruening ad8175928d lint fixes for /test/unit/ 2015-07-05 19:50:35 +01:00
Carl Eberhard f93961c497 Merge testing 2015-04-16 11:09:11 -04:00
Carl Eberhard 1bc86a5fba Testing: move managers, web/base, datatypes/dataproviders, and visualization 'unit'(?) tests to using common mock objects and loading system; cleanup 2015-04-16 10:25:34 -04:00
Carl Eberhard c1f721086f Managers: attempt to extract trans from de/serializers 2015-04-02 13:49:03 -04:00
Carl Eberhard fafea361ac Managers: remove trans param as much as possible (this results in some clunky use of current_history kwarg) 2015-04-01 15:21:25 -04:00
Carl Eberhard f8c6725c42 Managers, filters: allow remapping of attribute keys; expand tests 2015-03-31 15:35:17 -04:00
Carl Eberhard 9f1be65937 Managers: re-add dataset assoc job methods, move primary id serialization into base serializer, minor fixes and refactoring, expand tests 2015-03-31 11:15:49 -04:00
Carl Eberhard 188ff0076f Managers, Users: corrections and refactoring, expansion of tests 2015-03-30 18:00:13 -04:00
Dannon Baker fd500d7493 Fix path insertion vs appending of <galaxy>/lib for unit tests. 2015-02-12 10:37:44 -05:00
Carl Eberhard b44ca3c578 History API: allow filtering, limit, and offset in index params; Implement managers/base.FilterParser to configure how models can be filtered; Change ModelManager.list to allow limit, offset, and post-query (functional) filters; Add user filter, limit, and offset parsers to BaseController; Add tests for previous; Remove some UserManager functions; Continue filling out Annotatable mixin 2015-01-29 10:42:54 -05:00
Carl Eberhard 52ff6ef5d0 Remove trans from method bodies where possible 2015-01-12 14:15:42 -05:00
Carl Eberhard fac23b2a1a History Mgr: eliminate the UsesHistoryMixin; HDA Mgr: move serveral methods into mgr from UsesHDAMixin; User Mgr: improve api generation/checking 2015-01-09 13:22:06 -05:00
Carl Eberhard 98db1349a4 Initial commit for changes to managers: implement base ModelManager, Serializer, and Deserializer; incorporate into hdas and histories managers; implement users, datasets nabagers; re-work histories api to use the managers better; unit tests for managers; search and destroy on UsesHistoryMixin; minor fixes to list-panel 2014-12-17 15:26:43 -05:00