diff --git a/test/unit/data/data_access/test_misc.py b/test/unit/data/data_access/test_misc.py index 1dfc193465f6..40d55552a16d 100644 --- a/test/unit/data/data_access/test_misc.py +++ b/test/unit/data/data_access/test_misc.py @@ -149,3 +149,10 @@ def test_populated_optimized_list_list_not_populated(session, make_dataset_colle assert not c1.populated_optimized assert not c2.populated assert not c2.populated_optimized + + +def test_default_disk_usage(session, make_user): + u = make_user() + u.adjust_total_disk_usage(1, None) + user_reload = session.get(m.User, u.id) + assert user_reload.disk_usage == 1 diff --git a/test/unit/data/test_galaxy_mapping.py b/test/unit/data/test_galaxy_mapping.py index 7ad6a4117782..481bd1a62479 100644 --- a/test/unit/data/test_galaxy_mapping.py +++ b/test/unit/data/test_galaxy_mapping.py @@ -347,15 +347,6 @@ def test_nested_collection_attributes(self): ] assert c4.dataset_elements == [dce1, dce2] - def test_default_disk_usage(self): - u = model.User(email="disk_default@test.com", password="password") - self.persist(u) - u.adjust_total_disk_usage(1, None) - u_id = u.id - self.expunge() - user_reload = self.model.session.get(model.User, u_id) - assert user_reload.disk_usage == 1 - def test_basic(self): original_user_count = len(self.model.session.scalars(select(model.User)).all())