Commit Graph
23 Commits
Author SHA1 Message Date
Nicola Soranzo 9d74bba7fb Drop support for retired Python 3.5
Upgrade syntax using `pyupgrade --py36-plus` .

Manually drop several `six` imports.

Also:
- Remove broken pr_cache in scripts/bootstrap_history.py
- Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
2020-10-07 11:52:13 +01:00
Sergey Golitsynskiy b45f2eb777 Initialize routes.Mapper instead of WebApplication 2020-08-27 17:23:59 -04:00
Sergey Golitsynskiy 248da21d96 Make visualization unit tests independent 2020-08-27 16:57:52 -04:00
John Chilton 22ddea4337 Better packaging of unit test utilities.
clean_multiline_string was used in multiple places across modules in different packages so I simply refactored it into galaxy.util and added a test case (used in multiple places and has tests a lower bar then some other code in galaxy.util).

The tempfilecache abstraction was only used in one place, so I've refactored it right into that file.

Together these should simplify the package tests for galaxy-data (and hopefully other packages also).
2020-07-03 13:32:32 -04:00
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
Carl Eberhard 7fd6cc3704 Visualization registry: move tests into directory matching lib/galaxy/visualization/plugins 2015-04-29 13:46:51 -04:00