diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 14:26:12 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 14:26:12 +0100 |
commit | 3e4fa1e2022970dee003bea0932ea0c10f8744ba (patch) | |
tree | d23b32b9a6e33dc57694547f1ec1427f1a19a01a /test/test_njs.py | |
parent | 47cdfb6f30f7d56bffb806cc860e20806ea62f50 (diff) | |
download | unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.gz unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.bz2 |
Tests: removed unused variables.
Diffstat (limited to 'test/test_njs.py')
-rw-r--r-- | test/test_njs.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): |