We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77dcf8c + be8bce7 commit 394b20dCopy full SHA for 394b20d
1 file changed
tests/test_cmd2.py
@@ -1231,3 +1231,12 @@ def test_exclude_from_history(abbrev_app):
1231
help""")
1232
assert out == expected
1233
1234
+
1235
+def test_is_text_file_bad_input(base_app):
1236
+ # Test with a non-existent file
1237
+ file_is_valid = base_app.is_text_file('does_not_exist.txt')
1238
+ assert not file_is_valid
1239
1240
+ # Test with a directory
1241
+ dir_is_valid = base_app.is_text_file('.')
1242
+ assert not dir_is_valid
0 commit comments