Files
gnucash/bindings/python/tests/runTests.py.in
T
Noah R 859f0839ce [python-bindings] Add Split wrapping fixes, refactor tests for CI
Add missing gnc_numeric wrapping for two Split methods:
  - GetNoclosingBalance → GncNumeric
  - GetCapGains → GncNumeric

Refactor test_price_and_wrapping.py to create all test data
programmatically in in-memory sessions, eliminating external data file
dependencies (pricedb1.gml2, sample1.gnucash) and XML backend
requirement. All 27 tests now run unconditionally.

Register tests in CI: add imports to runTests.py.in and add
test_price_and_wrapping.py to CMakeLists.txt dist list.
2026-03-06 15:05:30 -08:00

33 lines
878 B
Plaintext
Executable File

#!@PYTHON@
import unittest
import os
os.environ["GNC_UNINSTALLED"] = "1"
from test_function_class import TestFunctionClass
from test_gettext import TestGettext
from test_session import TestSession
from test_book import TestBook
from test_account import TestAccount
from test_split import TestSplit
from test_transaction import TestTransaction
from test_business import TestBusiness
from test_commodity import TestCommodity, TestCommodityNamespace
from test_numeric import TestGncNumeric
from test_query import TestQuery
from test_price_and_wrapping import (
TestGncPriceWrapping,
TestGncLotSplitList,
TestSplitGncNumericReturns,
TestAccountCurrencyOrParent,
TestCommodityObtainTwin,
TestCommodityNamespaceDS,
TestSwigTypemapCompat,
TestGetPriceReturnsGncNumeric,
TestDoubleWrapProtection,
)
if __name__ == '__main__':
unittest.main()