Files
fm-orchestrator/tests/test_common/test_config.py
mprahl 81f2bffdda Rearrange the imports to meet the style guide
This also includes `from __future__ import absolute_import`
in every file so that the imports are consistent in Python 2 and 3.
The Python 2 tests fail without this.
2020-03-03 14:48:47 -05:00

18 lines
493 B
Python

# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
from __future__ import absolute_import
import os.path
from module_build_service import conf
class TestConfig:
def test_path_expanduser(self):
test_dir = "~/modulebuild/builds"
conf.mock_resultsdir = test_dir
assert conf.mock_resultsdir == os.path.expanduser(test_dir)
test_dir = "~/modulebuild/builds"
conf.cache_dir = test_dir
assert conf.cache_dir == os.path.expanduser(test_dir)