Enforcing quote format with black in develop.

This commit is contained in:
Romain Dorgueil
2018-08-11 16:15:26 +02:00
parent 52887a297f
commit ca464ef6f7
25 changed files with 193 additions and 185 deletions

View File

@ -131,20 +131,20 @@ def test_requires():
def test_constructor():
c1 = Container(foo='foo', bar='bar')
c1 = Container(foo="foo", bar="bar")
assert 2 == len(c1)
c2 = Container({'foo': 'foo', 'bar': 'bar'})
c2 = Container({"foo": "foo", "bar": "bar"})
assert 2 == len(c2)
assert c1['foo'] == c2['foo']
assert c1['bar'] == c2['bar']
assert c1["foo"] == c2["foo"]
assert c1["bar"] == c2["bar"]
with pytest.raises(ValueError):
Container({'bar': 'bar'}, foo='foo')
Container({"bar": "bar"}, foo="foo")
@pytest.mark.parametrize('services', [None, {}])
@pytest.mark.parametrize("services", [None, {}])
def test_create_container_empty_values(services):
c = create_container(services)
assert len(c) == 2