Skip to content

Commit

Permalink
excluded __repr__ and __str__ in coveragerc
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasmagyar committed Apr 9, 2020
1 parent 4ee8dc2 commit 8bde463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ exclude_lines =
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__(self):
def __str__(self):
def __repr__
def __str__

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
Expand Down
3 changes: 0 additions & 3 deletions tests/unit/agroapi10/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,3 @@ def test_with_img_type_and_preset(self):
self.assertEqual(1, len(result))
result = self.test_instance.with_img_type_and_preset(ImageTypeEnum.GEOTIFF, PresetEnum.FALSE_COLOR)
self.assertEqual(1, len(result))

def test_repr(self):
repr(self.test_instance)

0 comments on commit 8bde463

Please sign in to comment.