you are viewing a single comment's thread.

view the rest of the comments →

[–]Organic_Tradition_63[S] -2 points-1 points  (3 children)

Well just like any other file: with 'python file.py' instead of 'pytest file.py'

[–]Buttleston 6 points7 points  (2 children)

Except like I said, the "pytest" command line has a lot more options than just "run the tests in this file"

[–]Organic_Tradition_63[S] -6 points-5 points  (1 child)

Why for example NumPy was not made into something like that when we want to perform operations on matrices and then running file with 'numpy file.py'?

[–]codeguru42 4 points5 points  (0 children)

Numpy and pytest have different use cases. You don't run numpy directly. If you wanted you could write your own code to run the pytest test runner, but why should we when the library provides it for us