forked from VimPlug/jedi-vim
fix a few problems with conftest
This commit is contained in:
@@ -16,7 +16,7 @@ class IntegrationTestFile(object):
|
|||||||
def run(self):
|
def run(self):
|
||||||
output = subprocess.check_output([VSPEC_RUNNER, VSPEC_FOLDER, self.path])
|
output = subprocess.check_output([VSPEC_RUNNER, VSPEC_FOLDER, self.path])
|
||||||
for line in output.splitlines():
|
for line in output.splitlines():
|
||||||
if line.startswith('not ok'):
|
if line.startswith('not ok') or line.startswith('Error'):
|
||||||
print(output)
|
print(output)
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
@@ -52,6 +52,7 @@ def pytest_generate_tests(metafunc):
|
|||||||
"""
|
"""
|
||||||
def collect_tests():
|
def collect_tests():
|
||||||
for f in os.listdir(TEST_DIR):
|
for f in os.listdir(TEST_DIR):
|
||||||
yield IntegrationTestFile(os.path.join(TEST_DIR, f))
|
if f.endswith('.vim'):
|
||||||
|
yield IntegrationTestFile(os.path.join(TEST_DIR, f))
|
||||||
|
|
||||||
metafunc.parametrize('case', list(collect_tests()))
|
metafunc.parametrize('case', list(collect_tests()))
|
||||||
|
|||||||
Reference in New Issue
Block a user