Skip to content

[TECH DEBT] Need tests for existing modules #9

Closed

Description

@nicholasmhughes

Description of the tech debt to be addressed, include links and screenshots

It seems these modules were created back in 2016 before there were stricter requirements for tests. The test framework is in place with some boilerplate, but we need to get some actual test code to cover the existing functionality.

Activity

  1. vipermark7 commented on Feb 7, 2024

    @vipermark7

    Interested in taking this on! I'll start with the utils/ folder

  2. vipermark7 commented on Feb 7, 2024

    @vipermark7

    Would we want to use PyTest for this?

    I'm unsure what the wider Python community uses. I think it would be a good option since in seems to come with handy mocking features :)

  3. nicholasmhughes commented on Feb 7, 2024

    @nicholasmhughes
    MemberAuthor

    Hello @vipermark7 ! Yes, the Salt Extensions expect to use nox to call pytest so the tests should be written in that fashion. You can look at some of the other Extensions which have tests for examples on how to structure them. If you have any additional questions, feel free to ask!

  4. vipermark7 commented on Feb 7, 2024

    @vipermark7

    I got a new unit test to pass locally! I thinkk I'll need write access to push it to my new branch though

  5. nicholasmhughes commented on Feb 7, 2024

    @nicholasmhughes
    MemberAuthor

    Great! Regarding contribution workflow, we use the Fork-and-Branch Workflow that is prevalent in OSS. So, you should be able to fork the repo, create a branch in your fork to hold and changes, and then open a PR to merge your branch into main back in this repository.

  6. vipermark7 commented on Feb 7, 2024

    @vipermark7
  7. lkubb commented on Oct 13, 2026

    @lkubb
    Member

    This has been implemented in #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions