Skip to content

Commit

Permalink
resolves #44
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Jul 2, 2015
1 parent f8db977 commit 9293375
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pyff/test/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,19 @@ def test_empty_store(self):
except IOError:
raise Skip

def test_empty_dir_error(self):
with patch.multiple("sys", exit=self.sys_exit, stdout=StreamCapturing(sys.stdout)):
from testfixtures import LogCapture
with LogCapture() as l:
try:
self.exec_pipeline("""
- load:
- %s/empty
""" % self.datadir)
except IOError:
raise Skip
assert "no entities found in" in str(l)

def test_store_and_retrieve(self):
with patch.multiple("sys", exit=self.sys_exit, stdout=StreamCapturing(sys.stdout)):
tmpdir = tempfile.mkdtemp()
Expand Down

0 comments on commit 9293375

Please sign in to comment.