Skip to content

Commit

Permalink
use regex to fix tests on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
LoricAndre committed Nov 21, 2024
1 parent a72ff65 commit 15de70a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_skim.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def test_tmux_stdin(self):
tmux_cmd = f.readlines()[-1].strip()

self.assertTrue(tmux_cmd.startswith("popup"))
self.assertIn("</tmp/sk-tmux-", tmux_cmd)
self.assertRegex(tmux_cmd, "< *[^ ]*/sk-tmux-")

def test_tmux_vanilla(self):
args = '--tmux'
Expand All @@ -1241,7 +1241,7 @@ def test_tmux_vanilla(self):
tmux_cmd = f.readlines()[-1].strip()

self.assertTrue(tmux_cmd.startswith("popup"))
self.assertNotIn("</tmp/sk-tmux-", tmux_cmd)
self.assertNotRegex(tmux_cmd, "< *[^ ]*/sk-tmux-")


def find_prompt(lines, interactive=False, reverse=False):
Expand Down

0 comments on commit 15de70a

Please sign in to comment.