forked from wting/autojump
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/integration: Add a failing test
Reproduce wting#348
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
autojump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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})) |