diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-28 11:04:52 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-28 11:04:52 +0100 |
| commit | b6eb06aeee0fda77395d7b3172c44b999b70cdee (patch) | |
| tree | 9e29f32a94df7340fcc335e1740062003be393cd /minishell_test/suites/preprocess.py | |
| parent | 348da189c00bdef866d2b597ea0250fc0f0e88dc (diff) | |
| download | minishell_test-b6eb06aeee0fda77395d7b3172c44b999b70cdee.tar.gz minishell_test-b6eb06aeee0fda77395d7b3172c44b999b70cdee.tar.bz2 minishell_test-b6eb06aeee0fda77395d7b3172c44b999b70cdee.zip | |
Refactoring config in a class to have a testable environment
Diffstat (limited to 'minishell_test/suites/preprocess.py')
| -rw-r--r-- | minishell_test/suites/preprocess.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/minishell_test/suites/preprocess.py b/minishell_test/suites/preprocess.py index c296dcb..e3b5ff5 100644 --- a/minishell_test/suites/preprocess.py +++ b/minishell_test/suites/preprocess.py @@ -10,7 +10,7 @@ # # # **************************************************************************** # -from minishell_test import config +from minishell_test.config import Config from minishell_test import hooks from minishell_test.suite.decorator import suite @@ -128,9 +128,9 @@ def suite_interpolation(test): test('echo $A\\ ', exports={"A": "bonjour je suis splited"}) test('echo $A\\ ', exports={"A": " bonjour je suis splited "}) test('echo $A$A$A', exports={"A": " bonjour je suis splited "}) - test("echo $A", exports={"A": "'" + config.LOREM + "'"}) - test('echo "$A"', exports={"A": "'" + config.LOREM + "'"}) - test("echo '$A'", exports={"A": "'" + config.LOREM + "'"}) + test("echo $A", exports={"A": "'" + Config.lorem + "'"}) + test('echo "$A"', exports={"A": "'" + Config.lorem + "'"}) + test("echo '$A'", exports={"A": "'" + Config.lorem + "'"}) test("$ECHO $ECHO", exports={"ECHO": "echo"}) test("$A$B bonjour", exports={"A": "ec", "B": "ho"}) test("$LS", exports={"LS": "ls -l"}, setup="touch a b c") |
