K
K
KIN19912018-11-02 16:47:48
Django
KIN1991, 2018-11-02 16:47:48

What is the best way to unit test an AJAX view?

Good afternoon, in my Django project there is a View that ONLY accepts ajax-post requests, the question is, does it make sense to write tests that will check that the View is not available for other methods (GET, simple POST without ajax)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question