[MRG + 1] Add tests for repr (#128)

* add tests for repr

* remove repr for Cell

* add round for repr of Cell

* change decimal places to 2

* change tests for 2 decimal places
This commit is contained in:
Vaibhav Mule
2018-10-05 20:19:24 +05:30
committed by Vinayak Mehta
parent f13337d50a
commit c53ea795fd
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class Cell(object):
def __repr__(self):
return '<Cell x1={} y1={} x2={} y2={}>'.format(
self.x1, self.y1, self.x2, self.y2)
round(self.x1, 2), round(self.y1, 2), round(self.x2, 2), round(self.y2, 2))
@property
def text(self):