Skip to content

Commit

Permalink
tests/integration: Add a failing test
Browse files Browse the repository at this point in the history
Reproduce wting#348
  • Loading branch information
rico-chet committed Feb 8, 2022
1 parent 9da67c3 commit 4f07c55
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/autojump.py
17 changes: 17 additions & 0 deletions tests/integration/autojump_test.py
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}))

0 comments on commit 4f07c55

Please sign in to comment.