Commit Graph
26 Commits
Author SHA1 Message Date
John Chilton 360b327de6 Augment pgcleanup to allow periodically deleting old datasets.
... and restricting operations to specific object store ids.
2023-09-25 15:10:13 -04:00
John Davis bea0b359c4 Drop test for help display in deleted scripts 2023-02-08 00:39:42 -05:00
Nicola Soranzo c35d8f2a06 Replace `unittest.TestCase` with pytest-based partial re-implementation
Also:
- Rename `FooBarTestCase` test classes as `TestFooBar`. These were collected
  by pytest only because they were `unittest.TestCase` derived, but normally
  pytest collects only test classes whose name starts with `Test`, see
  https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes
2022-09-27 03:34:58 +01:00
Nicola Soranzo 30d8d2ba66 Remove unused function 2022-09-27 03:34:56 +01:00
Nicola Soranzo 3091737ab9 Misc test fixes 2022-09-27 03:34:55 +01:00
Sergey Golitsynskiy 3c992a608f Add create/migrate scripts for Alembic dbs (squashed)
Also add exec permissions to create/migrate python scripts.
(not sure this is required, adding for consistency with previous
version)

+ A few fixes for TS scripts, tests

Squashed:
- pick b62443245e Add create/migrate scripts for Alembic dbs
- squash 06f0a923ca Fix integration test (test only relevant for TS)
2022-03-09 18:41:02 -05:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
Nicola Soranzo 90a729e431 New pyupgrade fixes
Found by running `ack --type=python -f | grep -v '^tools/' | xargs pyupgrade --py36-plus`
2021-10-24 12:10:34 +01:00
Dannon Baker 434d406bde Cleanout communication server.
I don't think anyone's actively using this anymore, and most
communication has moved to (also embeddable) things like Gitter, etc.
2020-10-22 09:58:34 -04:00
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
Nicola Soranzo 1dc1e5f219 Python3: unicodify the output of `subprocess.check_output()`
By default it's a bytestring.

Also:
- don't use `shell=True`
- add a `splitlines()` forgotten in commit 670897ec5c
- raise exception instead of returning `error_info` in `docker_to_singularity()`
- use a random temp dir in `singularity_container_test()`
2020-02-05 12:13:39 +00:00
mvdbeek b58bf62252 Print output when exception occurs 2020-01-09 14:40:48 +01:00
mvdbeek e7abcb030b Fix integration test case for database set through env var 2020-01-09 14:40:48 +01:00
mvdbeek d0693ccbea Run and fix grt/export.py test
It used to take 35 minutes on jenkins, but it doesn't anymore, as we're
using a clean database for each test class.
2020-01-09 14:40:48 +01:00
John Chilton 45019c3fbd Move galaxy testing utilities into more sane package structure.
Split test/base into lib/galaxy_test/base and lib/galaxy_test/driver. Dividing things on whether they import galaxy-app code or not - with the goal of a galaxy-test-base package that doesn't depend on galaxy-app and a galaxy-test-driver package that does.

I've been refactoring around this division for a long time. Certain tests (namely the integration tests) always need to bootstrap Galaxy - but the API tests and the Selenium tests should be installable and runnable without Galaxy in the Python environment. So future galaxy-test-api and galaxy-test-selenium packages should have only an optional dependency on galaxy-test-driver.

Properly sturcturing these namespaces is a precursor for real packages on PyPI, clean separation of the tool shed testing code, and cleans up all the flake8 noqa hacks in test/.
2019-11-12 09:03:06 -05:00
Nate Coraor df7f8b425d Integration tests for handler assignment methods 2019-01-04 16:46:29 -05:00
Nicola Soranzo e14b871eb9 Add test for scripts/galaxy-main 2018-09-06 11:00:08 +01:00
Nicola Soranzo df8abbe3ef Prefer unicodify() for binary-to-text conversion
which supports non-utf-8 encodings.
2018-08-21 12:35:05 +01:00
mvdbeek cfce246845 Fix GRT export test 2018-08-14 14:56:07 +02:00
mvdbeek fd5e8cdd28 py3: fix test_scripts integration test 2018-08-02 13:21:19 +02:00
Dannon Baker 5171b9bd49 A couple more typos. 2018-07-18 09:42:39 -04:00
Nicola Soranzo 6ea22bfe18 Exclude only test_grt_export integration test
which takes 35' by itself.
2018-04-16 17:25:49 +01:00
John Chilton 506de02ec4 Skip new script tests in dev branch, they are breaking integration suite. 2018-04-04 10:23:24 -04:00
John Chilton bb90ae93d8 More grt fixes - spotted by @nsoranzo. 2018-03-23 16:14:50 -04:00
John Chilton b14928d972 Cleanup script integration tests. 2018-03-23 16:14:49 -04:00
John Chilton 5f3f792f6f Unification of Galaxy configuration parsing for scripts/* 2018-03-23 16:14:49 -04:00