-
Notifications
You must be signed in to change notification settings - Fork 484
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
Support additional_contexts #763
Support additional_contexts #763
Conversation
08101db
to
0f2aa5a
Compare
👍 I'm using this commit in my fork |
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.
Thanks for the PR, looks great!
Could you add unit tests (pytests/ directory) and also an automatic runner for the docker-compose.yml that you've added. There are examples of such tests in tests directory now.
0f2aa5a
to
2e1cef8
Compare
I have added the automatic runner test in This PR touches two functions:
My question 1: Should I create a new file
My question 2: Is the expectation that I should develop enough unit testing framework, with filesystem mocking etc., for |
Hi @p12tic , we were also looking for this feature to be implemented, and it seems like @otto-liljalaakso-nt addressed partially your review comments. Could you answer his question and move this forward? |
I'm sorry, I missed the comment by @otto-liljalaakso-nt.
I cleaned up
As of now the best place for normalize_service tests is in pytests/test_normalize_service.py.
Agreed. But I think the change is simple enough that we can leave it untested. I feel that the amount of effort needed to test build_one() is too high for the benefits.
Completely agreed. Lack of testing framework is problem of the project. Until there's one, the parts that are hard to test will unfortunately be left not tested. |
2e1cef8
to
5106183
Compare
@p12tic I have updated
So think this is ready to merge, and those unrelated problems should be dealt with separately. |
If you prefer, I can add a commit that runs Black and applies the changes it wants to make. For the failing test case, I don't know what it is about. |
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.
Thanks, everything looks good.
The CI was broken during last few days due to some PRs that have been pushed a bit carelessly. This is now fixed. I will rebase the PR and merge it. |
5106183
to
11ac786
Compare
Signed-off-by: Otto Liljalaakso <otto.liljalaakso@novatron.fi>
11ac786
to
cac836b
Compare
I ran |
Great to hear that. I would like to suggest reviewing pre-commit configuration and the suggestion to run that in CONTRIBUTING.md. It looks like pre-commit and CI are using different tools for the same purpose, leading to confusion like this. |
Fixes #762