aboutsummaryrefslogtreecommitdiff
path: root/test.py
Commit message (Collapse)AuthorAgeFilesLines
* switch from WTFPL to GPL3 or laterFlorian Fischer2023-08-111-0/+16
|
* add doc strings and use more meaningful variable namesFlorian Fischer2023-08-111-9/+16
|
* extract message sending from the Geldschieberbot classFlorian Fischer2023-08-111-10/+9
| | | | | | | | | | This makes the class more flexible and allows for different means of sending the replies back by executing a subprocess or using dbus/jsonrpc. Also remove the never used group send command. Make the Geldschieberbot constructor parameters mandatory and let the caller handle the configuration.
* remove global variables using the environmentFlorian Fischer2023-08-111-5/+35
| | | | | | | | | | | | Previously the geldschieberbot module used global variables retrieved from the environment for its configuration. This is not very flexible and can lead to problems when using the module from other python code. Therefore make all configuration Geldschieberbot specific and pass the values to the constructor. If no values are provided fallback to the environment. This change is fully backwards compatible.
* ignore old obscure changes in the state fileFlorian Fischer2023-08-101-0/+12
|
* introduce dataclasses for the passed dataFlorian Fischer2023-08-101-12/+32
| | | | | | Refactor all implicit dictionaries into explicit data classes. This makes the code more explicit, easier to check for mypy and overall more maintainable.
* test: use more intuitive transfer commandFlorian Fischer2023-08-101-5/+5
|
* add new sum alias 'balance'Florian Fischer2022-09-041-2/+10
|
* geldschieberbot: support transaction with multiple recipientsFlorian Fischer2022-07-261-2/+65
| | | | | | | | | | | | | | All recipients receive amount making transactionswith multiple receipients a shortcut for posting the same transaction with a changing recipient. !schieb 5 alice bob is equivalent to !schieb 5 alice !schieb 5 bob Aliases are supported as well.
* test: add test for transactions with unknown recipientFlorian Fischer2022-07-261-0/+7
|
* add option to quote cmd messagesFlorian Fischer2022-07-251-1/+1
|
* test: disable pylint style checks for test codeFlorian Fischer2022-07-251-1/+2
|
* support aliases in tanken commandFlorian Fischer2022-07-061-0/+24
| | | | Move tanken code into Gelschieberbot to simply expand aliases in drives.
* add alias supportFlorian Fischer2022-07-061-0/+96
| | | | | | | Aliases can be used where one or multiple persons names can be used. An alias is expanded to the list of users it represents. For commands implicitly including one user (e.g., 'split') the expansion of the implicit user can be prevented.
* test: use f-stringsFlorian Fischer2022-07-041-52/+38
|
* test: sanely name test state filesFlorian Fischer2022-07-041-25/+25
|
* fixup! test: add explicit encoding to openFlorian Fischer2022-07-041-1/+1
|
* test: add explicit encoding to openFlorian Fischer2022-07-041-3/+3
|
* test.py: make formatFlorian Fischer2022-04-191-0/+18
|
* test.py: don't use subprocess.run(check=True)Florian Fischer2021-11-181-2/+8
| | | | | Using check=True will cause subprocess.run to raise an exception and our own failure handling code like printing what happend will not run.
* [test] explicitly pass check=True to subprocess.runFlorian Fischer2021-09-091-0/+1
|
* [test] remove useless f-stringsFlorian Fischer2021-09-091-4/+4
|
* make formatFlorian Fischer2021-09-091-1/+4
|
* add thanks command eastereggFlorian Fischer2021-09-091-0/+12
|
* add seperate full-sum command and print only the senders sum per defaultFlorian Fischer2021-07-011-0/+15
|
* [cars] add remove commandFlorian Fischer2021-04-181-1/+17
|
* remove duplicate test methodsFlorian Fischer2021-03-291-44/+0
|
* run yapfFlorian Fischer2021-03-291-96/+147
|
* support !split person amountFlorian Fischer2021-03-251-4/+10
|
* fix change recording for transfer cmdFlorian Fischer2021-03-241-0/+14
|
* s/Transfere/TransferFlorian Fischer2021-03-241-8/+8
|
* allow sum cmd for carsFlorian Fischer2020-10-171-0/+13
|
* support rewinding specific changesFlorian Fischer2020-09-141-0/+37
|
* indent change parts in list-changesFlorian Fischer2020-09-141-10/+10
|
* add list-changes commandFlorian Fischer2020-09-141-0/+79
|
* prohibit pure numerical namesFlorian Fischer2020-08-251-0/+17
|
* prevent crashes when money should be transfered to the issuerFlorian Fischer2020-04-281-0/+18
|
* add testsFlorian Fischer2020-03-151-0/+903