Skip to content

Commit

Permalink
Fix mocking of GalaxyAppConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Mar 1, 2022
1 parent 6c1756a commit 28f0210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/webapps/test_config_values.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from collections import namedtuple
from datetime import timedelta
from unittest.mock import patch

import pytest

Expand Down Expand Up @@ -225,8 +226,8 @@ def get_expected_object_store_store_by(self, value):
return 'uuid'


@patch('galaxy.config.GalaxyAppConfiguration._override_tempdir', lambda a, b: None)
def get_config_data():
config.GalaxyAppConfiguration._override_tempdir = lambda a, b: None # method must be mocked
configuration = config.GalaxyAppConfiguration()
ev = ExpectedValues(configuration)
items = ((k, v) for k, v in configuration.schema.app_schema.items())
Expand Down

0 comments on commit 28f0210

Please sign in to comment.