100% coverage
This commit is contained in:
parent
a2f3f590f6
commit
f29f22a52e
@ -8,3 +8,5 @@ omit =
|
||||
fail_under = 100
|
||||
show_missing = True
|
||||
skip_covered = True
|
||||
exclude_lines =
|
||||
if __name__ == .__main__.:
|
||||
|
@ -1,6 +0,0 @@
|
||||
class WrongAssumptions(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class UnexpectedMarkup(WrongAssumptions):
|
||||
pass
|
@ -52,8 +52,11 @@ class FunctionsTestCase(IsolatedAsyncioTestCase):
|
||||
self.assertEqual(expected_output, output)
|
||||
|
||||
def test_get_row_indent(self):
|
||||
trs = self.test_soup.find_all('tr')
|
||||
mock_row = BeautifulSoup('<tr><div>foo</div></tr>', HTML_PARSER).tr
|
||||
expected_output = 0
|
||||
output = functions.get_row_indent(mock_row)
|
||||
self.assertEqual(expected_output, output)
|
||||
trs = self.test_soup.find_all('tr')
|
||||
output = functions.get_row_indent(trs[0])
|
||||
self.assertEqual(expected_output, output)
|
||||
for i, tr in enumerate(trs[1:], start=1):
|
||||
|
Loading…
Reference in New Issue
Block a user