From d1d453b89185cc3fc59f7ead1f73fd8bd1394254 Mon Sep 17 00:00:00 2001 From: David Halter Date: Thu, 22 Aug 2013 21:06:14 +0430 Subject: [PATCH] tests should now be working --- conftest.py | 7 ++++--- test_integration.py | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 test_integration.py diff --git a/conftest.py b/conftest.py index ec370f6..1ccaaf9 100644 --- a/conftest.py +++ b/conftest.py @@ -12,12 +12,13 @@ TEST_DIR = 'test' class IntegrationTestFile(object): def __init__(self, path): self.path = path - self.skip = None def run(self): output = subprocess.check_output([VSPEC_RUNNER, VSPEC_FOLDER, self.path]) - print output - assert False + for line in output.splitlines(): + if line.startswith('not ok'): + print(output) + assert False def __repr__(self): return "<%s: %s>" % (type(self), self.path) diff --git a/test_integration.py b/test_integration.py new file mode 100644 index 0000000..d47e06b --- /dev/null +++ b/test_integration.py @@ -0,0 +1,2 @@ +def test_integration(case, monkeypatch, pytestconfig): + case.run()