-
Notifications
You must be signed in to change notification settings - Fork 158
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
Fix depsolving empty recipes #291
Conversation
When running tests somewhere else than Central Time, `test_api_time()` fails like AssertionError: '1985-10-27T02:00:00' != '1985-10-26T21:00:00' `test_yaps_to_project_info()` fails in a similar way. Pin the time zone to UTC for this test and adjust timestamps to UTC.
- Fix `projects_depsolve()` to not consider a successful empty response (rc == 0) as an error. - Fix recipe_from_dict() to default modules and packages to empty lists instead of `None`, to avoid a Python-ism in the API for consumers and stay compatible to the bdcs API. Fixes #290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hmm, do the tests run in CI somewhere? Other PRs do seem to do that. |
not for the lorax-composer branch ATM. It's on my todo but I'd like to get done with configuring CI for the other repos as well. |
Ah, ok. I ran all the tests locally, and aside from #292 (which is unaffected by this PR and unrelated) they all pass now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good, Thanks!
projects_depsolve()
to not consider a successful empty response(rc == 0) as an error.
instead of
None
, to avoid a Python-ism in the API for consumers andstay compatible to the bdcs API.
Fixes #290
This PR also fixes two unrelated test failures and a tiny log error copy-pasta error, while I was at it.