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

Adding testing for LinodeBaseModule #422

Merged
merged 9 commits into from
Oct 6, 2023

Conversation

amisiorek-akamai
Copy link
Contributor

@amisiorek-akamai amisiorek-akamai commented Oct 3, 2023

📝 Description

Adds unit testing for LinodeBaseModule and migrates all existing unittest to pytest.

✔️ How to Test

make unittest

@amisiorek-akamai amisiorek-akamai requested a review from a team as a code owner October 3, 2023 21:41
@zliang-akamai zliang-akamai requested a review from a team October 4, 2023 16:34

from ansible_collections.linode.cloud.tests.unit.base import TestModuleBase

class TestLinodeModuleBase():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor optional suggestion, if the test case is not depends on any class/object attributes (self.some_attr), we can even remove the classes and only keep the functions, lol

Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@zliang-akamai zliang-akamai requested a review from a team October 5, 2023 20:51
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass on my end, nice work!

@amisiorek-akamai amisiorek-akamai merged commit b5b735d into linode:dev Oct 6, 2023
4 checks passed
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.

3 participants