Commit f6bd4cda authored by Matt Clarkson's avatar Matt Clarkson

Issue #3: Remove Unwriteable.json as git only stores 1 bit for permissions.

parent 3c872703
Pipeline #564 passed with stages
in 6 minutes and 39 seconds
......@@ -16,18 +16,6 @@ def test_constructor_with_valid_file():
assert manager is not None
def test_constructor_with_valid_read_only_file():
manager = cm.ConfigurationManager("tests/data/Unwritable.json")
assert manager is not None
def test_constructor_fails_if_file_needs_to_be_writable():
with pytest.raises(ValueError):
cm.ConfigurationManager("tests/data/Unwritable.json", True)
def test_setter_getter_loop():
m = cm.ConfigurationManager("tests/data/FordPrefect.json")
......
{
"researcher": {
"name": "Ford Prefect",
"species": "Betelgeusian",
"relatives": [
{
"name": "Zaphod Beeblebrox",
"species": "Betelgeusian"
}
]
}
}
......@@ -30,9 +30,3 @@ def test_valid_writeable_file():
result = f.validate_is_writable_file("tests/data/FordPrefect.json")
assert result
def test_valid_unwriteable_file():
with pytest.raises(ValueError):
f.validate_is_writable_file("tests/data/Unwritable.json")
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