-
Notifications
You must be signed in to change notification settings - Fork 15
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
Separate config classes #1840
Separate config classes #1840
Conversation
c4aa817
to
6063e03
Compare
6063e03
to
6498f4c
Compare
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.
Can we make sure we have tests for all of these changes.
Maybe we should adjust the triggers so that tests/linting run on PRs to any branch?
Is this already done? The YAMLSerialisable and AzureSerialisable classes aren't intended to be used standalone, and the classes that inherit from them are already tested. |
No, there are tests for I think we should still write tests with simple examples of how we expect these classes to be used. You could look at the |
10c82f1
to
59e417e
Compare
@JimMadge: I've written some tests, but note that I actually don't expect these classes to be used on their own :) |
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, a few little things to tidy up.
I've written some tests, but note that I actually don't expect these classes to be used on their own
Yes but I don't think I follow your point. If we were to write an ABC we would still need to test it. I think the model here of making a toy "real class" in the tests is a sensible way to do that and neatly separates testing these classes from our real "real classes".
✅ Checklist
Enable foobar integration
rather than515 foobar
).develop
.'[WIP]'
to the title if needed (if you're not yet ready to merge).Separate out serialisable classes (YAMLSerialisable and AzureSerialisable) and ensure that all config files (config, pulumi and contextsettings) are inheriting from one of these.
🌂 Related issues
n/a
🔬 Tests
Tested locally