aboutsummaryrefslogtreecommitdiff
path: root/minishell_test/suites
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-05 18:02:45 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-05 18:02:45 +0100
commitb496ff9bb11949a4739ba44c75f2f5504a094fdb (patch)
tree0d974a390a3787721b54dfde9278c246c698bed4 /minishell_test/suites
parentb164430fb1fa82c705077d46cdb685de5faf6a19 (diff)
downloadminishell_test-b496ff9bb11949a4739ba44c75f2f5504a094fdb.tar.gz
minishell_test-b496ff9bb11949a4739ba44c75f2f5504a094fdb.tar.bz2
minishell_test-b496ff9bb11949a4739ba44c75f2f5504a094fdb.zip
Removing annoying flake8 plugins
Diffstat (limited to 'minishell_test/suites')
-rw-r--r--minishell_test/suites/flow.py4
-rw-r--r--minishell_test/suites/path.py8
2 files changed, 7 insertions, 5 deletions
diff --git a/minishell_test/suites/flow.py b/minishell_test/suites/flow.py
index 90aef7f..ed5fd03 100644
--- a/minishell_test/suites/flow.py
+++ b/minishell_test/suites/flow.py
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:24:52 by charles #+# #+# #
-# Updated: 2021/02/05 15:11:21 by charles ### ########.fr #
+# Updated: 2021/02/05 17:40:00 by charles ### ########.fr #
# #
# ############################################################################ #
@@ -20,6 +20,7 @@ from minishell_test.hooks import (
error_eof_to_expected_token
)
+
@suite()
def suite_end(test):
""" `;` tests """
@@ -58,6 +59,7 @@ def suite_end(test):
test("ls " + 40 * " ; ls" + ";", setup="touch a b c")
test("ls " + 80 * " ; ls" + ";", setup="touch a b c")
+
@suite()
def suite_pipe(test):
""" `|` tests """
diff --git a/minishell_test/suites/path.py b/minishell_test/suites/path.py
index b350168..fa67d9a 100644
--- a/minishell_test/suites/path.py
+++ b/minishell_test/suites/path.py
@@ -6,7 +6,7 @@
# By: charles <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/09 15:12:58 by charles #+# #+# #
-# Updated: 2021/02/05 14:50:19 by charles ### ########.fr #
+# Updated: 2021/02/05 17:47:32 by charles ### ########.fr #
# #
# ############################################################################ #
@@ -22,9 +22,9 @@ def suite_path(test):
if whoami_path is None:
print("Couldn't find `whoami` in your PATH: Skipping suite")
return
- mode_fmt = ("mkdir path && cp "
- + whoami_path
- + " ./path/a && chmod {} ./path/a")
+ mode_fmt = ("mkdir path && cp " +
+ whoami_path +
+ " ./path/a && chmod {} ./path/a")
test("a", setup=mode_fmt.format("000"), exports={"PATH": "path"})
test("a", setup=mode_fmt.format("001"), exports={"PATH": "path"})
test("a", setup=mode_fmt.format("002"), exports={"PATH": "path"})