Run black formatter
This commit is contained in:
parent
c7632cdb80
commit
68262b6212
@ -19,6 +19,8 @@ import file_scripts.editor as editor
|
||||
* If override is not None, ensure that it is in the result
|
||||
|
||||
"""
|
||||
|
||||
|
||||
class TestSelectEditor(unittest.TestCase):
|
||||
def test_returns_path_object(self):
|
||||
self.assertIsInstance(editor.select_editor(), str)
|
||||
|
@ -21,7 +21,7 @@ class TestRunFZF(unittest.TestCase):
|
||||
self.mocked_run = self.patched_subprocess.start()
|
||||
|
||||
def test_creates_pathlike_object(self):
|
||||
self.assertIsInstance(fzf.select_file_with_fzf(b'test'), Path)
|
||||
self.assertIsInstance(fzf.select_file_with_fzf(b"test"), Path)
|
||||
|
||||
def tearDown(self):
|
||||
patch.stopall()
|
||||
|
@ -71,12 +71,12 @@ class TestFindFiles(unittest.TestCase):
|
||||
|
||||
class LocateFiles(unittest.TestCase):
|
||||
def setUp(self):
|
||||
#self.patched_locate_opts = patch(f"{TESTING_MODULE}")
|
||||
# self.patched_locate_opts = patch(f"{TESTING_MODULE}")
|
||||
self.patched_subprocess = patch(f"{TESTING_MODULE}.subprocess.run")
|
||||
|
||||
self.mocked_run = self.patched_subprocess.start()
|
||||
|
||||
search.LOCATE_OPTS = ["opt1", "opt2"]
|
||||
search.LOCATE_OPTS = ["opt1", "opt2"]
|
||||
|
||||
@given(test_patterns=lists(text()), bin=text())
|
||||
def test_bin_override(self, test_patterns, bin):
|
||||
|
Loading…
x
Reference in New Issue
Block a user