Skip to content

Commit

Permalink
Commit and legacy backpopulate pattern from unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Dec 25, 2023
1 parent 8bab912 commit ccdd733
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/integration/test_display_applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class TestDisplayApplicationTestCase(ContainerizedIntegrationTestCase):
dataset_populator: DatasetPopulator
container_type = "docker"

def setUp(self):
Expand Down
4 changes: 2 additions & 2 deletions test/unit/data/test_galaxy_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def persist(cls, *args, **kwargs):
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.
Expand Down Expand Up @@ -699,7 +699,7 @@ def test_current_session(self):
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

Expand Down

0 comments on commit ccdd733

Please sign in to comment.