How can I define my metrics for test on django?

196
January 02, 2018, at 6:41 PM

I need to define some metrics for my tests in my application. So I need to my application only deploy if the minimum for my code coverage was 50%, like I defined. So if my tests doesn't pass, my deploy will stop (I use Travis CI for my automation deployment)

I use Django for my tests. It's possible?

READ ALSO
Python Pie chart from CSV data

Python Pie chart from CSV data

I have acsv file that contains 3 columns that I must read into Python and convert to a pie plot

239
Reading csv with several subgroups

Reading csv with several subgroups

I have a csv-file that contains "pivot-like" data that I would like to store into a pandas DataFrameThe original data file is divided using different number of whitespaces to differentiate between the level in the pivot-data like so:

149
Nothing is shown in detail.html

Nothing is shown in detail.html

Nothing is shown in detailhtml

90
How to SELECT a field from a LEFT JOIN'ed table/model with Django's ORM (1.11)

How to SELECT a field from a LEFT JOIN'ed table/model with Django's ORM (1.11)

Context: Using Django Rest Framework, I've created a ModelViewSet

111