mardi 4 août 2020

testing whether the data is matching upto 4 decimal places using pytest and publish report by using it

enter image description here

I have dataframe as above now I have to match buy with new_perc_buy (upto 4 decimal places) similarly sell with new_perc_sell (upto 4 decimal places) and if it does not meet the decided condition it fails but for reporting and comparing purpose I wanted to use pytest I did not know how to perform it in pytest whether there is an assert method for it ?

Aucun commentaire:

Enregistrer un commentaire