mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-04 05:33:49 +08:00
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>
18 lines
507 B
Python
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)
|