Files
fm-orchestrator/tests/test_common/test_config.py
Chenxiong Qi 1c0715662a Cleanup module_build_service/__init__.py
Most of the code are moved to dedicated subpackages, but some others
can't due to the cycle dependencies.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-03-03 14:48:48 -05:00

18 lines
507 B
Python

# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
from __future__ import absolute_import
import os.path
from module_build_service.common.config 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)