mirror of https://github.com/wting/autojump
Merge 54e5cb0356
into ff75f542ae
commit
12fe0f37ca
@ -0,0 +1 @@
|
||||
autojump
|
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.append(os.path.join(os.getcwd(), 'bin')) # noqa
|
||||
from autojump import find_matches
|
||||
from autojump_data import entriefy
|
||||
|
||||
|
||||
def test_find_matches_returns_unique_results(tmpdir):
|
||||
path = str(tmpdir)
|
||||
needle = str(os.path.basename(tmpdir))
|
||||
|
||||
matches = find_matches(entriefy({path: 10}), [needle])
|
||||
|
||||
assert list(matches) == list(entriefy({path: 10}))
|
Loading…
Reference in new issue