diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-10-18 01:10:11 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-10-18 01:10:11 +0100 |
commit | 39adb292d54403d17f86f6852e87b0bda1d49946 (patch) | |
tree | 7fa2af8711216ed81bbf60531d990acd3a6f1013 /test/test_static_variables.py | |
parent | 78a4063063b8f810a616d74a358ef150faff96db (diff) | |
download | unit-39adb292d54403d17f86f6852e87b0bda1d49946.tar.gz unit-39adb292d54403d17f86f6852e87b0bda1d49946.tar.bz2 |
Tests: style.
Diffstat (limited to 'test/test_static_variables.py')
-rw-r--r-- | test/test_static_variables.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/test_static_variables.py b/test/test_static_variables.py index 80673b28..e7e1629c 100644 --- a/test/test_static_variables.py +++ b/test/test_static_variables.py @@ -2,7 +2,6 @@ import os from pathlib import Path import pytest - from unit.applications.proto import TestApplicationProto @@ -30,7 +29,7 @@ class TestStaticVariables(TestApplicationProto): return self.conf('"' + share + '"', 'routes/0/action/share') - def test_static_varibales(self, temp_dir): + def test_static_variables(self, temp_dir): assert self.get(url='/index.html')['status'] == 200 assert self.get(url='/d$r/file')['status'] == 200 @@ -40,7 +39,7 @@ class TestStaticVariables(TestApplicationProto): assert 'success' in self.update_share(temp_dir + '/assets${uri}') assert self.get(url='/index.html')['status'] == 200 - def test_static_varibales_array(self, temp_dir): + def test_static_variables_array(self, temp_dir): assert 'success' in self.update_share( [temp_dir + '/assets$uri', '$uri'] ) @@ -61,18 +60,18 @@ class TestStaticVariables(TestApplicationProto): assert self.get(url=temp_dir + '/assets/index.html')['status'] == 200 assert self.get(url='/dir/blah')['status'] == 201 - def test_static_varibales_buildin_start(self, temp_dir): + def test_static_variables_buildin_start(self, temp_dir): assert 'success' in self.update_share('$uri/assets/index.html') assert self.get(url=temp_dir)['status'] == 200 - def test_static_varibales_buildin_mid(self, temp_dir): + def test_static_variables_buildin_mid(self, temp_dir): assert 'success' in self.update_share(temp_dir + '$uri/index.html') assert self.get(url='/assets')['status'] == 200 - def test_static_varibales_buildin_end(self): + def test_static_variables_buildin_end(self): assert self.get(url='/index.html')['status'] == 200 - def test_static_varibales_invalid(self, temp_dir): + def test_static_variables_invalid(self, temp_dir): assert 'error' in self.update_share(temp_dir + '/assets/d$r$uri') assert 'error' in self.update_share(temp_dir + '/assets/$$uri') assert 'error' in self.update_share( |