-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
[BB-248] Improving test coverage #249
Conversation
fetch_mfa_device (bool): Whether to fetch MFA device for profiles. | ||
""" | ||
short_name, type = profile.split("-") |
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.
type
is a built-in function, better not to shadow it 🙂
def test_configure_accounts_profiles(mocked_backup, mfa_device, muted_click_context): | ||
""" | ||
Test that the expected jsons for the aws credentials are generated as expected. | ||
Cover both mfa and no-mfa cases. | ||
""" |
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.
@Franr I'd split these tests and have a separate test for each case.
@Franr General question. Perhaps I'm not familiar with the code yet but I'm finding it hard to understand what are you trying to test with some of the methods that do not describe what you are trying to test. Can we add docstrings with descriptions to all tests so its clear what is the intent ? |
What?
Improving tests coverage, mostly around
modules/credentials
Separating GHA files into 2: we need the "push" event for the unit tests, for the coverage integration, but not on the integration ones.
Why?
To improve the tools quality/realiability!
References
https://coveralls.io/builds/66184725