restage 0.7.0__tar.gz → 0.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {restage-0.7.0/src/restage.egg-info → restage-0.7.1}/PKG-INFO +1 -1
- {restage-0.7.0 → restage-0.7.1}/src/restage/cache.py +1 -1
- {restage-0.7.0 → restage-0.7.1/src/restage.egg-info}/PKG-INFO +1 -1
- {restage-0.7.0 → restage-0.7.1}/test/test_env_vars.py +9 -0
- {restage-0.7.0 → restage-0.7.1}/.github/workflows/pip.yml +0 -0
- {restage-0.7.0 → restage-0.7.1}/.github/workflows/wheels.yml +0 -0
- {restage-0.7.0 → restage-0.7.1}/.gitignore +0 -0
- {restage-0.7.0 → restage-0.7.1}/README.md +0 -0
- {restage-0.7.0 → restage-0.7.1}/pyproject.toml +0 -0
- {restage-0.7.0 → restage-0.7.1}/setup.cfg +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/__init__.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/bifrost_choppers.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/config/__init__.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/config/default.yaml +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/cspec_choppers.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/database.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/emulate.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/energy.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/instr.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/mcpl.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/range.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/run.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/scan.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/splitrun.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage/tables.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/SOURCES.txt +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/dependency_links.txt +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/entry_points.txt +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/requires.txt +0 -0
- {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/top_level.txt +0 -0
- {restage-0.7.0 → restage-0.7.1}/test/test_cache.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/test/test_cache_ro.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/test/test_database.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/test/test_energy.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/test/test_range.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/test/test_scan.py +0 -0
- {restage-0.7.0 → restage-0.7.1}/test/test_single.py +0 -0
|
@@ -26,7 +26,7 @@ class FileSystem:
|
|
|
26
26
|
path.mkdir(parents=True)
|
|
27
27
|
db_write = Database(path / named)
|
|
28
28
|
root = path
|
|
29
|
-
if config['fixed'].exists():
|
|
29
|
+
if config['fixed'].exists() and config['fixed'].get() is not None:
|
|
30
30
|
more = [Path(c) for c in config['fixed'].as_str_seq() if Path(c).exists()]
|
|
31
31
|
for m in more:
|
|
32
32
|
db_fixed.append(Database(m / named, readonly=True))
|
|
@@ -31,6 +31,15 @@ class SettingsTests(TestCase):
|
|
|
31
31
|
self.assertEqual(more[1],'/tmp/b')
|
|
32
32
|
self.assertEqual(more[2],'/tmp/c')
|
|
33
33
|
|
|
34
|
+
@patch.dict(os.environ, {"RESTAGE_FIXED": ''})
|
|
35
|
+
def test_restage_none_fixed_config(self):
|
|
36
|
+
reload(restage.config)
|
|
37
|
+
from restage.config import config
|
|
38
|
+
from confuse.exceptions import ConfigTypeError
|
|
39
|
+
self.assertTrue(config['fixed'].exists())
|
|
40
|
+
self.assertTrue(config['fixed'].get() is None)
|
|
41
|
+
self.assertRaises(ConfigTypeError, config['fixed'].as_str_seq)
|
|
42
|
+
|
|
34
43
|
def test_restage_standard_config(self):
|
|
35
44
|
from os import environ
|
|
36
45
|
reload(restage.config)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|