Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sub-EPIC] Add unit tests & refactor submodules #13

Closed
8 tasks done
trizin opened this issue Aug 2, 2023 · 1 comment
Closed
8 tasks done

[Sub-EPIC] Add unit tests & refactor submodules #13

trizin opened this issue Aug 2, 2023 · 1 comment
Labels

Comments

@trizin
Copy link
Contributor

trizin commented Aug 2, 2023

[Part of epic #50 "Ship MVP"]

TODOs

Add unit tests & refactor submodules for each of:

  • utils
    • [Trent] subgraph 5b364d2
    • [T] constants 5b364d2
    • [Berkay] contract.py - Berkay PR
    • [B,Calina] Berkay walk Calina through unit-testing setup, general onboard into pdr-backend
  • [C,T] predictoor
  • [C] trader
  • [B] trueval
  • dfbuyer --> moved to #128
  • publisher --> moved to #129
trentmc added a commit that referenced this issue Aug 3, 2023
trentmc added a commit that referenced this issue Aug 4, 2023
Towards #13: 
- refactor utils.subgraph
- thorough tests for utils.subgraph
- tests for utils.constants (simple)
- rename test modules so that no overlap in names (causes pycache problems)
trentmc added a commit that referenced this issue Aug 4, 2023
(Still many more tests to go for utils.contracts)
@trentmc trentmc added the Epic label Aug 18, 2023
@trentmc trentmc changed the title Add unit tests [Sub-epic] Add unit tests Aug 18, 2023
@trentmc trentmc changed the title [Sub-epic] Add unit tests [Sub-EPIC] Add unit tests Aug 18, 2023
trentmc pushed a commit that referenced this issue Aug 26, 2023
Co-authored-by: trizin <25263018+trizin@users.noreply.github.com>
@trentmc trentmc changed the title [Sub-EPIC] Add unit tests [Sub-EPIC] Add unit tests & refactor submodules Aug 29, 2023
trentmc added a commit that referenced this issue Aug 31, 2023
trentmc added a commit that referenced this issue Aug 31, 2023
…s() returns a dict of addr:Feed not addr:dict
trentmc added a commit that referenced this issue Sep 1, 2023
Towards #13
- refactoor & test predictoor/agent1 
  - agent- and object-oriented via PredictoorAgent1
  - config is OO too. PredictoorConfig1 uses model/base_config.py::BaseConfig
  - thorough tests for predictoor/agent1 via generous mocking
- added util/strutil.py incl StrMixin. Used it BaseConfig, Feed, more.
  - Feed has both shortstr() and longstr() now 
- use "1" and "2" more liberally in approach1 and 2 filenames. Helps minimize confusion
@trentmc
Copy link
Member

trentmc commented Sep 4, 2023

This is all done except publisher and dfbuyer agents. They're less urgent. Therefore I've created a new github to test & refactor each of those; and we can schedule accordingly.

Therefore this github issue is done!

@trentmc trentmc closed this as completed Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants