We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a591d commit a05ecf4Copy full SHA for a05ecf4
tests/test_ocrd_config.py
@@ -1,13 +1,15 @@
1
from tests.base import main
2
from unittest import mock
3
+from pathlib import Path
4
5
import ocrd_utils
6
7
def test_config_loading():
8
XDG_CONFIG_HOME_before = ocrd_utils.XDG_CONFIG_HOME
9
with ocrd_utils.pushd_popd(tempdir=True) as tempdir:
10
ocrd_utils.XDG_CONFIG_HOME = tempdir
- with open('ocrd.yml', 'w', encoding='utf-8') as f:
11
+ Path('ocrd').mkdir()
12
+ with open('ocrd/config.yml', 'w', encoding='utf-8') as f:
13
f.write('resource_location: cache\n')
14
from ocrd.config import load_config_file
15
obj = load_config_file()
0 commit comments