Skip to content

Commit

Permalink
Added message error for failed test. Deleted skip coverage configurat…
Browse files Browse the repository at this point in the history
…ion for examples folder.
  • Loading branch information
benjymb committed Oct 13, 2017
1 parent 1c4f660 commit 5c3eab3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ source = src
omit =
*test*
*tox*
*examples*

[tool:pytest]
addopts = --verbose
Expand Down
5 changes: 4 additions & 1 deletion tests/packerlicious/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def load_output_files(self):
def load_example_file(self, example_output_filename):
original_example = example_output_filename.split('.')[0]
example_module = import_module('examples.' + original_example)
assert self.output_files[original_example + '.template'].rstrip() == example_module.t.to_json()
assert (
self.output_files[original_example + '.template'].rstrip() == example_module.t.to_json(),
"The file {0}.template doesn't have the same result as {0}.py".format(original_example)
)

def test_examples(self):
self.load_output_files()
Expand Down

0 comments on commit 5c3eab3

Please sign in to comment.