Nicola Soranzo
f5cd88465e
Make str.join()s more efficient
...
by using generator expressions and tuples instead of lists.
2020-01-23 11:06:32 +00:00
Nicola Soranzo
29cf68f0b0
Do not encode a rendered Mako template
...
Fix 1 error and 2 failures in unit tests under Python 3, e.g.:
```
FAIL: test_render (unit.visualizations.plugins.test_VisualizationPlugin.VisualizationsPlugin_TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/galaxyproject/galaxy/test/unit/visualizations/plugins/test_VisualizationPlugin.py", line 180, in test_render
self.assertIsInstance(response, string_types)
AssertionError: b'\nTrue\n' is not an instance of (<class 'str'>,)
```
2018-07-01 00:19:00 -07:00
guerler
d288b3baa8
Adjust test cases
2018-03-30 15:56:37 -04:00
guerler
7afecf9d1a
Fix test cases
2018-03-09 15:29:31 -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
Nicola Soranzo
d1bc98dfcb
Python3: fix remaining print statements
...
Remove some debugging prints.
Fix import order.
Consolidate exception logging in ToolShed database migrations.
2017-10-12 18:34:29 +01:00
Nicola Soranzo
9b1832abb1
Fix import order for cron/, scripts/ and test/
2017-09-25 23:44: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
Anne Fouilloux
93da60c48e
Changed ipython with jupyter
...
not only for converting jupyter notebook to HTML (with nbconvert) but also
where ipython/IPython was referenced.
Some files still contain ipython but this is mostly related to documentation or
to the IE docker container itself.
2016-12-12 14:26:58 +01:00
Nicola Soranzo
a8746c4f52
Fix import order and Python3 compatibility for test/unit/
2016-11-16 10:29:09 +00:00
Nicola Soranzo
1d17a29c79
Fixes for pycodestyle 2.2.0
2016-11-15 16:56:50 +00:00
Nicola Soranzo
9a97a2952f
Python3: test/unit/
2016-06-29 01:55:44 -04:00
Nicola Soranzo
6ba6f798ec
Fix more E203 flake8 errors
2016-05-17 23:53:16 +01:00
Nicola Soranzo
8a43b2b492
Python 3: use "as" instead of comma in except clause
2016-05-17 23:53:16 +01:00
Nicola Soranzo
34d9388456
Use os.pardir everywhere instead of '..' .
2015-07-14 16:20:29 +01:00
Carl Eberhard
d675a6a0b3
Testing: use unittest2 to allow 2.7 assertions
2015-05-07 17:50:56 -04:00
Martin Cech
d28ea45556
Merge branch 'release_15.05' into dev
...
Conflicts:
config/plugins/visualizations/common/templates/script_entry_point.mako
2015-05-07 13:09:24 -04:00
John Chilton
04bc0b2111
Fix assertions in test_VisualizationsRegistry.py...
...
...that were implicitly assumed fixed Python hashing.
2015-05-06 14:12:25 -04:00
John Chilton
499108432a
Attempt to fix manager, viz, and web unit tests for Python 2.6...
...
... using unittest2.
2015-05-06 14:06:16 -04:00
Carl Eberhard
7fd6cc3704
Visualization registry: move tests into directory matching lib/galaxy/visualization/plugins
2015-04-29 13:46:51 -04:00
Carl Eberhard
41abb7d000
Visualization registry: expand plugin testing
2015-04-29 13:40:57 -04:00
Carl Eberhard
af1f9db527
Visualizations registry: a bit more shuffling between methods and between plugins and the visualization controller
2015-04-29 11:53:05 -04:00
Carl Eberhard
dab23a747c
Visualizations Registry: fix broken test that was sending mock template py files to the actual template cache dir
2015-04-28 16:05:25 -04:00
Carl Eberhard
ed36e625bb
Visualizations registry: refactor the relationship between plugins, the visualization controller, rendering, and rendering saved visualizations, minor fixes; Extend testing; Scatterplot: fix baseUrl resolution when used in own window
2015-04-28 15:41:01 -04:00
Carl Eberhard
1cf6e64abf
Visualization registry: update test so that mako caching occurs in the proper place
2015-04-27 10:57:42 -04:00
Carl Eberhard
d14aba2408
Visualizations registry: test script entry point; minor cleanup
2015-04-24 16:53:30 -04:00
Carl Eberhard
17e10683b8
Visualizations registry: refactor registry/pluginframework, and promote plugins to class
2015-04-22 15:37:06 -04:00
Carl Eberhard
ca2598c97d
Interactive environments: move InteractiveEnviornmentRequest to registry.py (since we branch on intenv code there anyway) from pluginframework.py; Add tests for intenv within visreg
2015-04-20 11:17:52 -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
2926eb0075
Visualizations Registry: update unit test to remove expected visualizations, small fixes
2014-01-14 15:52:01 -05:00
John Chilton
962a53e544
Allow run_unit_tests.sh to execute all unit tests in test/unit.
...
Basically adds __init__.py files to each subdirectory so nose detects these as Python module directories. Also modify dynamic loading of modules in Carl's test cases so the test case can be run with any cwd - including the Galaxy root directory as run_unit_tests.sh will use.
This should roughly double the number of unit tests buildbot runs.
2013-12-04 11:46:32 -06:00
Carl Eberhard
59d539a321
Visualizations registry, QA: initial unit tests; Plugin framework unit tests: remove unneeded tests
2013-09-19 10:09:19 -04:00
Carl Eberhard
d4a7c72bb5
Plugin frameworks, QA: add unit tests for PluginManager, HookPluginManager, and PageServingPluginManager
2013-09-18 18:24:00 -04:00