mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-03-25 14:30:29 +08:00
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.
18 lines
493 B
Python
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)
|