Skip to content

Modify tools scripts for easier testing #85

Description

@StokesMIDE

Right now, test_tools.py uses subprocess, which takes things out of the test environment. It might make sense to modify each tool something like this:

import sys
...

def main(argv):
    ...
    args = argparser.parse_args(argv)
    ...

if __name__ == "__main__":
    main(sys.argv)

This way, tests could be done by calling main(test_args), and pytest could handle any errors/failures more directly.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    developmentDevelopment issues: package deployment, project organization, etc.enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions