Skip to content

Commit

Permalink
Renamed variable, since docs are not written in Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 28, 2018
1 parent 8128497 commit 295d005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@


def get_headings(filename, underline="-"):
markdown = (docs_path / filename).open().read()
content = (docs_path / filename).open().read()
heading_re = re.compile(r'(\S+)\n\{}+\n'.format(underline))
return set(heading_re.findall(markdown))
return set(heading_re.findall(content))


def get_labels(filename):
markdown = (docs_path / filename).open().read()
return set(label_re.findall(markdown))
content = (docs_path / filename).open().read()
return set(label_re.findall(content))


@pytest.mark.parametrize('config', app.CONFIG_OPTIONS)
Expand Down

0 comments on commit 295d005

Please sign in to comment.