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
|
* If override is not None, ensure that it is in the result
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class TestSelectEditor(unittest.TestCase):
|
class TestSelectEditor(unittest.TestCase):
|
||||||
def test_returns_path_object(self):
|
def test_returns_path_object(self):
|
||||||
self.assertIsInstance(editor.select_editor(), str)
|
self.assertIsInstance(editor.select_editor(), str)
|
||||||
|
@ -21,7 +21,7 @@ class TestRunFZF(unittest.TestCase):
|
|||||||
self.mocked_run = self.patched_subprocess.start()
|
self.mocked_run = self.patched_subprocess.start()
|
||||||
|
|
||||||
def test_creates_pathlike_object(self):
|
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):
|
def tearDown(self):
|
||||||
patch.stopall()
|
patch.stopall()
|
||||||
|
@ -71,7 +71,7 @@ class TestFindFiles(unittest.TestCase):
|
|||||||
|
|
||||||
class LocateFiles(unittest.TestCase):
|
class LocateFiles(unittest.TestCase):
|
||||||
def setUp(self):
|
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.patched_subprocess = patch(f"{TESTING_MODULE}.subprocess.run")
|
||||||
|
|
||||||
self.mocked_run = self.patched_subprocess.start()
|
self.mocked_run = self.patched_subprocess.start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user