summaryrefslogtreecommitdiffstats
path: root/util/cmake/tests
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-05-17 15:05:49 +0200
committerTobias Hunger <tobias.hunger@qt.io>2019-05-17 13:26:26 +0000
commit5fe8a38af34d1530f14c3b695dee5a33e4a85554 (patch)
treeb156e00f569c11e25c3065b95065c70773f06fba /util/cmake/tests
parent140b65e36f71189fee181330018ed9fe8479fc6b (diff)
CMake: Fix test_operations
Fix test_operations and do some small mypy cleanups along the way Change-Id: I6586b5d3491e5dcf44252c098516f0922fa60420 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake/tests')
-rwxr-xr-xutil/cmake/tests/test_operations.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/cmake/tests/test_operations.py b/util/cmake/tests/test_operations.py
index 3ea2f76a43..c1e5f1b250 100755
--- a/util/cmake/tests/test_operations.py
+++ b/util/cmake/tests/test_operations.py
@@ -32,26 +32,26 @@ from pro2cmake import AddOperation, SetOperation, UniqueAddOperation, RemoveOper
def test_add_operation():
op = AddOperation(['bar', 'buz'])
- result = op.process(['foo', 'bar'])
+ result = op.process(['foo', 'bar'], ['foo', 'bar'], lambda x: x)
assert ['foo', 'bar', 'bar', 'buz'] == result
def test_uniqueadd_operation():
op = UniqueAddOperation(['bar', 'buz'])
- result = op.process(['foo', 'bar'])
+ result = op.process(['foo', 'bar'], ['foo', 'bar'], lambda x: x)
assert ['foo', 'bar', 'buz'] == result
def test_set_operation():
op = SetOperation(['bar', 'buz'])
- result = op.process(['foo', 'bar'])
+ result = op.process(['foo', 'bar'], ['foo', 'bar'], lambda x: x)
assert ['bar', 'buz'] == result
def test_remove_operation():
op = RemoveOperation(['bar', 'buz'])
- result = op.process(['foo', 'bar'])
+ result = op.process(['foo', 'bar'], ['foo', 'bar'], lambda x: x)
assert ['foo', '-buz'] == result