diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-03-03 09:19:20 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-03-03 09:19:20 +0100 |
| commit | 716265929bf861d340c1e71e2f24359875520d3a (patch) | |
| tree | d6e536e42de09d7a908c559aa5b51d36936a4e5b /tests/test_hooks.py | |
| parent | a90ac1b352bd5f7c2c677f051365401531229976 (diff) | |
| download | minishell_test-716265929bf861d340c1e71e2f24359875520d3a.tar.gz minishell_test-716265929bf861d340c1e71e2f24359875520d3a.tar.bz2 minishell_test-716265929bf861d340c1e71e2f24359875520d3a.zip | |
Added sandbox and colors tests
Diffstat (limited to 'tests/test_hooks.py')
| -rw-r--r-- | tests/test_hooks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_hooks.py b/tests/test_hooks.py index 2593b6e..6c7cdb1 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -6,7 +6,7 @@ # By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2021/02/27 20:03:52 by cacharle #+# #+# # -# Updated: 2021/03/02 17:45:15 by cacharle ### ########.fr # +# Updated: 2021/03/03 09:17:22 by cacharle ### ########.fr # # # # ############################################################################ # @@ -73,6 +73,8 @@ def test_error_line0(): assert "minishell: bonjour\n" == error_line0(Config.shell_reference_prefix + "-c: bonjour\nfoo\n") assert "minishell: \n" == error_line0(Config.shell_reference_prefix + "-c: \nfoo\n") assert Config.shell_reference_prefix + "-c:asdf\nfoo\n" == error_line0(Config.shell_reference_prefix + "-c:asdf\nfoo\n") + with config_context(check_error_messages=False): + assert DISCARDED_TEXT == error_line0(Config.shell_reference_prefix + "-c: bonjour\nfoo\n") def test_discard(): |
