You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.")
The text was updated successfully, but these errors were encountered:
There is no 1-to-1 relationship between app code and testing code. There is also no established convention how we should organize tests in the python community.
Again, you need a very good idea to get this rolling.
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
Will create this test file under the respective path with some test stub already in it:
/tests/test_app.py
The text was updated successfully, but these errors were encountered: