Commit 3c872703 authored by Matt Clarkson's avatar Matt Clarkson

Issue #3: Tweak tests, as I don't know where to put temporary files.

parent f0a80014
Pipeline #563 failed with stages
in 14 minutes and 13 seconds
......@@ -18,11 +18,11 @@ def test_constructor_with_valid_file():
def test_constructor_with_valid_read_only_file():
manager = cm.ConfigurationManager("tests/data/Unwritable.json", False)
manager = cm.ConfigurationManager("tests/data/Unwritable.json")
assert manager is not None
def test_constructor_fails_if_file_should_be_writable():
def test_constructor_fails_if_file_needs_to_be_writable():
with pytest.raises(ValueError):
cm.ConfigurationManager("tests/data/Unwritable.json", True)
......@@ -30,7 +30,7 @@ def test_constructor_fails_if_file_should_be_writable():
def test_setter_getter_loop():
m = cm.ConfigurationManager("tests/data/FordPrefect.json", True, True)
m = cm.ConfigurationManager("tests/data/FordPrefect.json")
d = m.get_copy()
d["researcher"]["name"] = "Ford Anglia"
m.set_data(d)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment