mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-26 08:00:05 -05:00
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.
33 lines
878 B
Plaintext
Executable File
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()
|