-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Kamil Niklasinski edited this page Dec 17, 2020
·
34 revisions
-
print(GetFX('USD'))
will nicely print the result - override__str__()
method in GetFX base class - try to apply different monkey patching: see pytest docs and apply yield teardown method - not done: check in book to order if/how to apply monkey patching in fixtures that return value using
yield
statement - consider if pytest.params could be used (not done)
- split to target classes/packages
- consider to write test for base class:
- GetFX object created
- constructor attributes are present
- _delete() method is present (iscallable) (not done)
- _get_request() and _store_response() are raising NotImplementedError
- str() returns a string (without checking specifics)
- consider moving parser to separate class (?) and write unit tests for it (with mocked NBP connection)
- consider how really packages and modules should be created. Do we need 3 packages? How they should be created?
- document methods, classes, packages; publish documentation;
- apply github CI
- coverage.py use
omit
to ignore tests folder. Then check results on coveralls - coveralls try to keep only one job if possible (?) or we have to use two?
- package
- before packaging consider make install to copy package to /usr/local/share and link to /usr/local/bin; however this installation requires virtual environment with dependent packages! So not sure if it makes sense, or maybe better create pip package first?
- set-up version
- documentation RST ;
- sphinx;
- where to host? (readthedocs or github specific)
- consider keeping docstring version of code in separate branch (branched from master)
- push all to master + make public
- consider creation of homebrew package
- consider creation of apt package
- import FX-es from page (directly, or from directory?) to SQL lite DB
- store FX-es in SQL lite DB and write tests for that
- write another module that analyses historic FX rates to get optimal investment (buying) strategy. It will use FX-es stored in GetFX database, eventually will fetch new ones (?)