void-packages/srcpkgs/gnucash/patches/runTests_py_in.patch
2020-04-15 16:36:43 +02:00

29 lines
1.2 KiB
Diff

--- bindings/python/tests/CMakeLists.txt
+++ bindings/python/tests/CMakeLists.txt
@@ -5,7 +5,7 @@ if (WITH_PYTHON)
# Because it hasn't been built yet
set(test_core_dir ${CMAKE_BINARY_DIR}/common/test-core)
endif()
- add_custom_target(test-python-bindings ALL DEPENDS unittest_support gnucash-core-c-build gnucash-core-c-py swig-app-utils-python)
+ add_custom_target(test-python-bindings ALL DEPENDS unittest_support gnucash-core-c-build gnucash-core-c-py sw_app_utils)
add_dependencies(check test-python-bindings)
add_test(python-bindings ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/runTests.py.in)
set_property(TEST python-bindings PROPERTY ENVIRONMENT
@@ -21,6 +21,7 @@ set(test_python_bindings_DATA
test_business.py
test_commodity.py
test_numeric.py
+ test_session.py
test_split.py
test_transaction.py
test_query.py)
--- bindings/python/tests/runTests.py.in
+++ bindings/python/tests/runTests.py.in
@@ -5,7 +5,6 @@ import os
os.environ["GNC_UNINSTALLED"] = "1"
-from test_session import TestSession
from test_book import TestBook
from test_account import TestAccount
from test_split import TestSplit