Is it correct to implement unit test in the model in the context of the Python language?

Asked

Viewed 130 times

1

In some languages it is not suitable. I would like to know if python is different. Thank you.

  • Which model? Why would it be wrong?

  • I don’t think it’s "wrong" in any language, just a paradigm decision. Have a look at this document: https://docs.python.org/3/library/unittest.html

  • Could you post a reference that says it’s wrong? Or the context in which it’s based?

  • 2

    I believe that without [Dit] and put the context from where he got that in some languages is wrong or right, and which criteria used, the question has no way to lead to an objective answer, only diffuse discussions on the subject (which does not fit in our model). I would suggest a better context, based on [Ask] and site scope.

1 answer

2

I don’t believe it’s "wrong" in any language, just a paradigm decision.

Python:

The framework unittest was originally inspired by Junit and is similar to most unit test frameworks in other languages. It supports test automation, boot code sharing and interruption for testing, test aggregation and test framework independence.

https://docs.python.org/3/library/unittest.html

Browser other questions tagged

You are not signed in. Login or sign up in order to post.