Files
fm-orchestrator/tests/test_config.py
mprahl 8c6cfb702d Use small license headers in the Python files
This also removes the outdated comments around authorship of each
file. If there is still interest in this information, one can just
look at the git history.
2019-10-03 08:47:24 -04:00

17 lines
454 B
Python

# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
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)