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 7a080f5 commit c58c5aaCopy full SHA for c58c5aa
tests/test_config.py
@@ -27,6 +27,7 @@
27
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
import os
29
from unittest.mock import patch
30
+import pytest
31
32
from servicex.configuration import Configuration
33
@@ -46,6 +47,10 @@ def test_config_read(tempdir):
46
47
c = Configuration.read(config_path="tests/example_config.yaml")
48
assert c.cache_path == "mytemp/servicex_p_higgs2"
49
50
+ # but what if there is no file at all?
51
+ with pytest.raises(NameError):
52
+ Configuration.read(config_path="invalid.yaml")
53
+
54
55
@patch('servicex.configuration.tempfile.gettempdir', return_value="./mytemp")
56
def test_default_cache_path(tempdir):
0 commit comments