From 3e4fa1e2022970dee003bea0932ea0c10f8744ba Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Thu, 25 May 2023 14:26:12 +0100 Subject: Tests: removed unused variables. --- test/test_njs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_njs.py') diff --git a/test/test_njs.py b/test/test_njs.py index a7261290..bd89e16d 100644 --- a/test/test_njs.py +++ b/test/test_njs.py @@ -42,7 +42,7 @@ class TestNJS(TestApplicationProto): self.set_share(f'"{temp_dir}/assets/`string`"') assert self.get()['status'] == 200 - def test_njs_template_expression(self, temp_dir): + def test_njs_template_expression(self): self.create_files('str', 'localhost') self.check_expression('${uri}', '/str') @@ -50,7 +50,7 @@ class TestNJS(TestApplicationProto): self.check_expression('${uri + host}') self.check_expression('${uri + `${host}`}') - def test_njs_iteration(self, temp_dir): + def test_njs_iteration(self): self.create_files('Connection,Host', 'close,localhost') self.check_expression('/${Object.keys(headers).sort().join()}') @@ -74,7 +74,7 @@ class TestNJS(TestApplicationProto): self.set_share(f'"`{temp_dir}/assets/${{args.foo}}`"') assert self.get(url='/?foo=str')['status'] == 200, 'args' - def test_njs_invalid(self, temp_dir, skip_alert): + def test_njs_invalid(self, skip_alert): skip_alert(r'js exception:') def check_invalid(template): -- cgit