2020-10-23 11:21:59 -07:00
|
|
|
"""
|
|
|
|
.. moduleauthor:: Eric Torres
|
|
|
|
|
|
|
|
Tests for the rbackup.config module.
|
|
|
|
"""
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
import file_scripts.editor as editor
|
|
|
|
|
|
|
|
# ========== Constants ==========
|
|
|
|
# ========== Tests ==========
|
|
|
|
|
|
|
|
"""Test the select_editor() function.
|
|
|
|
|
|
|
|
Test cases
|
|
|
|
-----------
|
|
|
|
* Returned object is an instance of str
|
|
|
|
* If override is not None, ensure that it is in the result
|
2022-02-20 21:35:04 -08:00
|
|
|
|
2020-10-23 11:21:59 -07:00
|
|
|
"""
|
2021-12-20 22:43:18 -08:00
|
|
|
|
|
|
|
|
2020-10-23 11:21:59 -07:00
|
|
|
class TestSelectEditor(unittest.TestCase):
|
|
|
|
def test_override(self):
|
|
|
|
override = "doesnotexist"
|
|
|
|
with self.assertRaises(FileNotFoundError):
|
|
|
|
editor.select_editor(override)
|