[tests] black -t py34

This commit is contained in:
Tobias Witek 2020-06-20 15:11:53 +02:00
parent e9e67ae375
commit 79fb28512f
10 changed files with 144 additions and 39 deletions

View file

@ -2,22 +2,27 @@ import pytest
from util.algorithm import *
@pytest.fixture
def someData():
return {"a": 100, "b": 200, "c": [1, 2, 3]}
@pytest.fixture
def differentData():
return {"x": 20, "y": "bla", "z": ["a", "b"]}
@pytest.fixture
def moreData():
return {"n": 100}
@pytest.fixture
def overlapData():
return {"a": 200, "c": [1, 2, 4]}
def test_merge_with_empty(someData):
assert merge(someData, {}) == someData
assert merge(someData, None) == None