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 a67bd6c commit ca1489eCopy full SHA for ca1489e
tests/test_context.py
@@ -27,3 +27,12 @@ def test_json_data_overrides_environ_variables():
27
context = Context(os.path.join("tests", "fixtures"))
28
data = context.get_data("simple.json")
29
eq_(data[test_var], test_value)
30
+
31
32
+def test_unknown_data_file():
33
+ test_var = "TEST_ENVIRONMENT_VARIABLE"
34
+ test_value = "am I found"
35
+ os.environ[test_var] = test_value
36
+ context = Context(os.path.join("tests", "fixtures"))
37
+ data = context.get_data("unknown.data")
38
+ eq_(data[test_var], test_value)
0 commit comments