mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
tests/integration: Add a failing test
Reproduce https://github.com/wting/autojump/issues/348
This commit is contained in:
parent
9da67c3277
commit
4f07c55f03
1
bin/autojump.py
Symbolic link
1
bin/autojump.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
autojump
|
17
tests/integration/autojump_test.py
Normal file
17
tests/integration/autojump_test.py
Normal file
@ -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
Block a user