mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Commit and legacy backpopulate pattern from unit test
This commit is contained in:
@@ -6,6 +6,7 @@ from .test_containerized_jobs import ContainerizedIntegrationTestCase
|
||||
|
||||
|
||||
class TestDisplayApplicationTestCase(ContainerizedIntegrationTestCase):
|
||||
dataset_populator: DatasetPopulator
|
||||
container_type = "docker"
|
||||
|
||||
def setUp(self):
|
||||
|
||||
@@ -60,7 +60,7 @@ class BaseModelTestCase(TestCase):
|
||||
for arg in args:
|
||||
session.add(arg)
|
||||
if flush:
|
||||
session.flush()
|
||||
session.commit()
|
||||
if kwargs.get("expunge", not flush):
|
||||
cls.expunge()
|
||||
return arg # Return last or only arg.
|
||||
@@ -699,7 +699,7 @@ class TestMappings(BaseModelTestCase):
|
||||
self.persist(user, galaxy_session)
|
||||
assert user.current_galaxy_session == galaxy_session
|
||||
new_galaxy_session = model.GalaxySession()
|
||||
new_galaxy_session.user = user
|
||||
user.galaxy_sessions.append(new_galaxy_session)
|
||||
self.persist(user, new_galaxy_session)
|
||||
assert user.current_galaxy_session == new_galaxy_session
|
||||
|
||||
|
||||
Reference in New Issue
Block a user