Skip to content

Commit

Permalink
test(filepath): windows completion
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhala committed Feb 2, 2022
1 parent 473f22c commit 4828e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/prompts/test_filepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def test_invalid_argument(self):
self.assertRaises(InvalidArgument, FilePathPrompt, "hello", None, False, 12)
FilePathPrompt(message="hello", default=lambda _: "12")

@patch("platform.system")
@patch("os.name")
def test_completer_explicit_currdir_all_win(self, mocked_platform):
with self.chdir(self.test_dir):
completer = FilePathCompleter()
Expand All @@ -278,7 +278,7 @@ def test_completer_explicit_currdir_all_win(self, mocked_platform):
sorted(self.dirs_to_create + self.files_to_create),
)

@patch("platform.system")
@patch("os.name")
def test_completer_currdir_file_win(self, mocked_platform):
with self.chdir(self.test_dir):
completer = FilePathCompleter()
Expand Down

0 comments on commit 4828e90

Please sign in to comment.