diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-31 04:43:43 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-31 04:45:21 +0100 |
| commit | c97912223d3730e08a06cffec886c0ff4f3da95c (patch) | |
| tree | a942eb61d0ece0b75792150ec901161b603555cf /src/test/captured.py | |
| parent | 361e1fe39e88788ef4173083482d520753225a3e (diff) | |
| download | minishell_test-c97912223d3730e08a06cffec886c0ff4f3da95c.tar.gz minishell_test-c97912223d3730e08a06cffec886c0ff4f3da95c.tar.bz2 minishell_test-c97912223d3730e08a06cffec886c0ff4f3da95c.zip | |
Fixing typing error
Diffstat (limited to 'src/test/captured.py')
| -rw-r--r-- | src/test/captured.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/test/captured.py b/src/test/captured.py index 2c33b78..4cf9184 100644 --- a/src/test/captured.py +++ b/src/test/captured.py @@ -6,17 +6,23 @@ # By: charles <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 12:16:25 by charles #+# #+# # -# Updated: 2021/01/31 03:29:22 by charles ### ########.fr # +# Updated: 2021/01/31 04:23:03 by charles ### ########.fr # # # # ############################################################################ # -from typing import List +from typing import List, Optional import config class Captured: - def __init__(self, output: str, status: int, files_content: List[str], is_timeout: bool = False): + def __init__( + self, + output: str, + status: int, + files_content: List[Optional[str]], + is_timeout: bool = False + ): """Captured class output: captured content status: command status @@ -29,7 +35,6 @@ class Captured: lines[i] = l.replace(config.REFERENCE_ERROR_BEGIN, config.MINISHELL_ERROR_BEGIN, 1) elif l.find(config.REFERENCE_PATH + ": ") == 0: lines[i] = l.replace(config.REFERENCE_PATH + ": ", config.MINISHELL_ERROR_BEGIN, 1) - self.output = '\n'.join(lines) self.status = status |
