summaryrefslogtreecommitdiff
path: root/test/python
Commit message (Collapse)AuthorAgeFilesLines
* Migrate Python scripts to Python 3Alexis Hildebrandt2023-12-043-3/+3
|
* Fix python/c++ conversion for boost::optional<T>David Sklar2023-01-271-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_postDavid Sklar2023-01-101-6/+21
|
* Python: test cleanupsDavid Sklar2023-01-093-8/+4
| | | | | | | | 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.
* Add parse error testManuel Amador (Rudd-O)2016-02-081-0/+18
|
* Started writing Python unit testsJohn Wiegley2012-03-011-10/+15
|
* Added skeletons for Python unit testsJohn Wiegley2012-02-294-0/+87
|
* Unit test for Python are now auto-generated from the C++ tests.John Wiegley2009-01-283-1469/+0
|
* Removed temporary file.John Wiegley2009-01-281-1469/+0
|
* Reorganized Ledger so that it builds as 7 separate libraries. This is mainlyJohn Wiegley2009-01-253-0/+1469
| | | | to prove to myself that it has proper decoupling between prior code areas.
* The Python interface code is now building again and passes its unit tests.John Wiegley2008-08-071-81/+81
|
* 'make distcheck' now works.John Wiegley2008-08-062-14/+0
|
* Moved several tests around again (python/test -> test/python).John Wiegley2008-08-065-0/+1483
|
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-055-1483/+0
| | | | is in doc/, etc.
* 'make check' is now working again. Also, conversion from amount_t to/fromJohn Wiegley2008-07-271-7/+6
| | | | | | | double has been disabled, because I am no longer packaging the gdtoa library with Ledger (because double conversion really has nothing to do with what Ledger does). If you wish to use it, you can find gdtoa in cpp-rewrite-2006, under a sub-directory of the same name.
* Exchanged old test files for the new testing code in was-v3.0.John Wiegley2008-05-085-0/+1484