Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Migrate Python scripts to Python 3 | Alexis Hildebrandt | 2023-12-04 | 1 | -1/+1 |
| | |||||
* | Fix python/c++ conversion for boost::optional<T> | David Sklar | 2023-01-27 | 1 | -0/+9 |
| | | | | | | | | | | | | | | Setters for types wrapped in boost::optional, such as item_t::note were broken, e.g. setting a note on a transaction resulted in garbled data that would cause Python to throw utf-8 errors when retrieving the note. (But setters that accessed strings directly, e.g. "payee" on a transaction worked fine.) This change alters the from-python conversion for optional-wrapped types based on the example at https://stackoverflow.com/questions/36485840/wrap-boostoptional-using-boostpython and a test case to verify the behavior. | ||||
* | Python: Transaction.remove_post should call xact_base_t::remove_post | David Sklar | 2023-01-10 | 1 | -6/+21 |
| | |||||
* | Python: test cleanups | David Sklar | 2023-01-09 | 1 | -3/+1 |
| | | | | | | | | 1. Remove references to modules (exceptions, StringIO) no longer needed for Pythn3 2. Use assertEqual instead of assertEquals 3. Clear journal files with a close_journal_files() function that uses the then-current underlying python_session pointer. Calling session.close_journal_files() sometimes leads to segfaults because python_session has changed after it was injected into the python module (as "session") on module startup. | ||||
* | Added skeletons for Python unit tests | John Wiegley | 2012-02-29 | 1 | -0/+25 |