Skip to content

Commit

Permalink
tests: Mock inputrc by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 22, 2022
1 parent cf4744d commit 8b244b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import argparse
import contextlib
import os
import os.path
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -40,6 +41,10 @@
FISH_VERSION_TUPLE = tuple(int(x) for x in FISH_VERSION_STR.split("."))


def setUpModule():
os.environ['INPUTRC'] = os.path.join(os.path.dirname(__file__), 'inputrc')


class TempDir(object):
"""
Temporary directory for testing FilesCompletion
Expand Down

0 comments on commit 8b244b9

Please sign in to comment.