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

Add some unit tests for get_price_jobs_up_to_date. #26

Merged
merged 1 commit into from
Jul 11, 2021

Conversation

doriath
Copy link
Contributor

@doriath doriath commented Mar 15, 2021

There are two behaviors I am not sure if they are features or bugs.

  1. get_price_jobs_at_date() does not return a price for a date when
    commodity first appears in a transaction (maybe off by one error?).
  2. get_price_jobs_(up_to|at)_date() behave differently for commodities
    not held at cost. If this is a bug, I can fix it in this or followup
    PR.

@doriath
Copy link
Contributor Author

doriath commented Mar 15, 2021

Please let me know what you think about the TODOs in the tests. If those are intended behaviors, I can update the comments explaining why. If those are not intended behaviors, I can fix them in this or followup PR.

@doriath doriath force-pushed the get_price_jobs_up_to_date_tests branch 2 times, most recently from 77e03fa to c874c8a Compare March 20, 2021 10:54
@doriath doriath force-pushed the get_price_jobs_up_to_date_tests branch from c874c8a to cf13c5e Compare March 20, 2021 21:57
@doriath
Copy link
Contributor Author

doriath commented Mar 21, 2021

Refs #5

@doriath doriath force-pushed the get_price_jobs_up_to_date_tests branch from cf13c5e to faf3e92 Compare April 10, 2021 11:30
There are two behaviors I am not sure if they are features or bugs.
1. get_price_jobs_at_date() does not return a price for a date when
   commodity first appears in a transaction (maybe off by one error?).
2. get_price_jobs_(up_to|at)_date() behave differently for commodities
   not held at cost. If this is a bug, I can fix it in this or followup
   PR.
@doriath doriath force-pushed the get_price_jobs_up_to_date_tests branch from faf3e92 to 47d486b Compare April 10, 2021 12:12
@blais blais merged commit b05203e into beancount:master Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants