mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
tests: move .cache to build, rename test/_utils.vim
This commit is contained in:
committed by
Dave Halter
parent
1c3078e9f9
commit
7894b38c0c
2
Makefile
2
Makefile
@@ -11,6 +11,6 @@ check: build/vint
|
||||
build/vint/bin/vint $(LINT_FILES)
|
||||
|
||||
clean:
|
||||
rm -rf .cache build
|
||||
rm -rf build
|
||||
|
||||
.PHONY: test check clean
|
||||
|
||||
@@ -6,7 +6,7 @@ import zipfile
|
||||
import pytest
|
||||
|
||||
VSPEC_URL = 'https://github.com/kana/vim-vspec/archive/1.4.1.zip'
|
||||
CACHE_FOLDER = '.cache'
|
||||
CACHE_FOLDER = 'build'
|
||||
VSPEC_FOLDER = os.path.join(CACHE_FOLDER, 'vim-vspec-1.4.1')
|
||||
VSPEC_RUNNER = os.path.join(VSPEC_FOLDER, 'bin/vspec')
|
||||
TEST_DIR = 'test'
|
||||
@@ -68,7 +68,7 @@ def pytest_generate_tests(metafunc):
|
||||
"""
|
||||
def collect_tests():
|
||||
for f in os.listdir(TEST_DIR):
|
||||
if f.endswith('.vim') and f != 'utils.vim':
|
||||
if f.endswith('.vim') and f != '_utils.vim':
|
||||
yield IntegrationTestFile(os.path.join(TEST_DIR, f))
|
||||
|
||||
tests = list(collect_tests())
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
let mapleader = '\'
|
||||
source plugin/jedi.vim
|
||||
source test/utils.vim
|
||||
source test/_utils.vim
|
||||
|
||||
describe 'goto simple'
|
||||
before
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
source plugin/jedi.vim
|
||||
source test/utils.vim
|
||||
source test/_utils.vim
|
||||
|
||||
describe 'pyimport'
|
||||
before
|
||||
|
||||
Reference in New Issue
Block a user