Skip to content
Kamil Niklasinski edited this page Nov 24, 2020 · 34 revisions

GetFX TO DO

Phase 1

  • 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
  • apply github CI
  • merge to master

Phase 2

  • 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

Phase 3

  • 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 (?)
Clone this wiki locally