Nicola Soranzo
05b9467c35
Merge branch 'release_24.2' into dev
2025-03-13 00:37:29 +00:00
John Davis
dfe1536a5d
Update test fixture
...
Specify correct role name for private roles. See comment in make_role
definition for why this must be set.
2025-03-10 11:13:13 -04:00
John Davis
6f47682a39
Remove transaction helper from test.unit.data
2025-01-23 11:39:24 -05:00
John Davis
0e51a52272
Move test fixture to conftest
2024-10-30 15:28:47 -04:00
John Davis
e255a384cd
Modify make_role fixture to accommodate downgrading in migration tests
2024-10-30 15:28:47 -04:00
John Davis
8c4a90010a
Add tests for user and history default permissions
2024-09-23 17:05:15 -04:00
John Davis
7739134485
Add unit tests for user/group/role associations
2024-09-23 14:22:59 -04:00
John Davis
b261dea43a
Randomize test user email to respect unique constraint
2024-09-20 17:24:20 -04:00
John Davis
1d7d65568b
Convert + improve test_job/task_metrics
2024-06-10 15:48:10 -04:00
John Davis
c8df2fdf30
Convert test_get_display_name
2024-06-10 15:48:10 -04:00
John Davis
9572a93ac4
Convert test_ratings
2024-06-10 15:48:10 -04:00
John Davis
7ad6d43418
Start replacing test_galaxy_mapping w/data access tests
2024-06-10 15:48:10 -04:00
John Davis
fabce5bdc4
security.get_private_user_role: test + factor out
2024-06-10 15:48:10 -04:00
John Davis
71b9e4b971
Add first library data access tests
...
- factor out db access from lib manager;
- add unit tests
- move data access functions from managers.libraries to model.db.libraries
2024-06-10 15:48:10 -04:00
John Davis
1c90246606
Improve model fixtures
...
We can't pass make_foo fixture functions as the default argument to
kwd.get("foo", make_foo()) because make_foo is executed in any case,
which creates a side effect by loading a new foo row into the database,
which leads to failing tests since the number of foo records becomes off
by one.
2024-06-10 15:48:10 -04:00
John Davis
1773dca37a
Add model fixtures
2024-05-02 14:12:35 -04:00
John Davis
09fee6aaad
Remove future, autocommit args from session and engine creation
2024-04-05 13:54:39 -04:00
John Davis
475f7227c4
Add future=True flag to SA engine
2023-12-12 09:54:08 -05:00
Sergey Golitsynskiy
c9e3d340f6
Move tmp_dir fixture one level up
...
Otherwise url_factory is not usable outside of migrations
2022-04-20 10:28:03 -04:00
Sergey Golitsynskiy
9ae2d4e08f
Simplify (no need for scoped_session), consolidate redundant fixtures
2022-04-20 10:28:03 -04:00
Dannon Baker
623a5e165a
Apply black formatting.
...
Apply isort.
2022-02-03 07:42:20 -05:00
John Chilton
c58fe574a8
Move more galaxy-data tests into test/unit/data so they are tested as part of galaxy-data tests.
2021-09-24 12:16:55 -04:00