Bela
9830035276
test for new account module
...
so far account module handles only delay account matters
includes moving tests from test_delayed_transaction
2020-08-05 17:45:07 +02:00
Bela
5f81835606
pylint no short name
2020-08-04 16:54:48 +02:00
Bela
18ce9e3fe0
enable extracting delayed transaction from book
2020-08-04 16:52:29 +02:00
Bela
1dd5086f22
rewrite init
...
of DelayedTransaction: Iterable is not enough since I want to check for length
2020-08-04 16:52:29 +02:00
Bela
cb6036e5d0
test importing delayed transaction from book
2020-08-04 16:52:29 +02:00
Bela
b1a56e3857
fix tests:
...
miscalculated number of created transactions by mixing them up with number of splits
2020-08-04 16:52:29 +02:00
Bela
a08dd3094c
be more specific about todo
2020-08-04 16:52:29 +02:00
Bela
6df2dd44ad
move and rename id type
...
to comply with PascalCase and since neither self.ID_TYPE nor ID_TYPE worked
2020-08-04 16:52:16 +02:00
Bela
a16e210925
add refactoring library
2020-08-04 16:42:01 +02:00
Bela
8ed78aa030
todo: separate dev environment from running environment
2020-08-04 16:41:52 +02:00
Bela
f1b12fd317
fix for test complience: make transactions accessible and actually return new object
2020-08-04 15:37:31 +02:00
Bela
939ef9c5e9
new test to test whether we actually get an object
...
while moving creation to classmethods I forgot to return those created objects
so turn this error into a test
2020-08-04 14:40:17 +02:00
Bela
a42c0909d8
fix missing self
2020-08-04 14:11:36 +02:00
Bela
29f3deda10
fix docs
2020-08-04 14:11:24 +02:00
Bela
d32d00426c
rename delay_id to id_nr
...
since its already inside of delay environment and id is preoccupied by identity function builtin
2020-08-04 14:11:03 +02:00
Bela
b0adbc893b
silence pylint
2020-08-04 14:01:11 +02:00
Bela
e25cfec17c
fix pylint warning about import order
2020-08-04 14:00:09 +02:00
Bela
450160dcef
pylint: remove newline
2020-08-04 13:37:33 +02:00
Bela
e747e4e549
move constructor into environment.yml
...
src
tags classmethod
2020-08-04 13:37:17 +02:00
Bela
831b765670
fix pylint warning about non-fitting NEW_TYPE
2020-08-04 13:36:29 +02:00
Bela
acbcf2dd3c
fix pylint warning about spaces
2020-08-04 13:36:12 +02:00
Bela
cd67eef4e7
add documentation for attributes
2020-08-04 13:35:57 +02:00
Bela
f1d0203546
fix pylint warning about import order
2020-08-04 13:35:31 +02:00
Bela
2f210f4293
fix spelling typo
2020-08-04 13:35:09 +02:00
Bela
82087485c3
add pip as conda requirement
...
otherwise conda might use some random pip for installing the dependencies installed by pip
2020-08-04 13:34:58 +02:00
Bela
b4ca06cc2c
add mypy type checker
2020-08-04 13:34:15 +02:00
Bela
6d815e5cde
change test to use classmethod
...
I notice that I need a different constructor if I want to create a new DelayedTransaction than if I want to model a delayed transaction that is already in the database.
Since python has only one constructor, I need to use class methods to distinguish those cases.
2020-08-04 12:27:42 +02:00
Bela
55eb70032d
insert space for better readability
2020-08-03 23:10:35 +02:00
Bela
0d084a96da
test delayed transaction generation with multiple currencies
2020-08-03 16:10:25 +02:00
Bela
9de65d3b6b
add todo: automatic id generation for delayed transactions
2020-08-03 16:09:57 +02:00
Bela
abf70bdf9d
add account types to documentation
...
I looked for the possible account types several times already and could only find them in the error message if I use a wrong one
2020-08-03 16:01:45 +02:00
Bela
af6771ebfa
fix error in test: accept dict of accounts
2020-08-03 15:19:11 +02:00
Bela
c7de1a6e5c
expect more than one delayaccount in test
...
a delayed transaction can involve several currencies. Then we need
several delayaccounts which is represented in the new argument
delayaccounts={commodity: delayaccount}
2020-08-03 15:14:48 +02:00
Bela
5b24873a93
make test pass with delayed transaction creation
2020-07-23 21:33:52 +02:00
Bela
241564d1eb
fix test for delayed transaction creation
2020-07-23 21:33:33 +02:00
Bela
29e33e1fe0
include documentation of special member functions in documentation
...
but not of __weakref__
2020-07-23 21:18:32 +02:00
Bela
6d6cec7e1a
show typehints a bit nicer in documentation
2020-07-23 21:18:03 +02:00
Bela
ed859c885c
show todos as such in documentation
2020-07-23 21:17:04 +02:00
Bela
83b15373d3
include packages installed via pip in conda env
...
not tested
2020-07-23 21:16:16 +02:00
Bela
1a86e2e670
create creation test for delayed transaction
2020-07-23 19:52:23 +02:00
Bela
1c03c0bfb5
include delayed transactions in documentation
2020-07-23 19:28:40 +02:00
Bela
ca5d6cc946
basic concept of delayed transaction in comment and first function: creating delay account names
2020-07-23 19:25:17 +02:00
Bela
c8fddb6e19
make test functions methods
...
pylint says they should not have self argument since they do not use self but I am not sure about that since its in a test class
2020-07-23 19:24:44 +02:00
Bela
17a9e58098
ignore depraction warning coming from piecash
2020-07-23 19:22:45 +02:00
Bela
65258f5d75
rename for snake style
2020-07-23 18:46:04 +02:00
Bela
1a511485d4
test for delay account names
2020-07-23 18:42:57 +02:00
Bela
1e4f9163a6
piecash to be installed into environment by hand
2020-07-14 18:21:47 +02:00
Bela
99a089606e
reserve directory for trying things out: playground
2020-07-14 18:19:32 +02:00
Bela
735fb55d1e
skip test
...
do not know yet how to implement opening a database
2020-07-07 21:31:19 +02:00
Bela
ca78350da9
propery name for account
2020-07-07 21:31:07 +02:00