Skip to content

Enhancement: Create test stubs #22

Description

@pykong

I believe a great enhancement for this package would be a command to create test stubs.
Such would parallel a function many IDEs, like Visual Studio, provide to make the life of the lazy programmer more comfortable.

app.py

defadd(a: int, b: int) ->int:
returna+b

Will create this test file under the respective path with some test stub already in it:

/tests/test_app.py

importpytestfrom ..appimportadddeftest_add(self):
"""Test for add."""raiseNotImplementedError("Test for add not implemented.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions