summaryrefslogtreecommitdiffhomepage
path: root/test/test_static_chroot.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-10-18 01:10:11 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2021-10-18 01:10:11 +0100
commit39adb292d54403d17f86f6852e87b0bda1d49946 (patch)
tree7fa2af8711216ed81bbf60531d990acd3a6f1013 /test/test_static_chroot.py
parent78a4063063b8f810a616d74a358ef150faff96db (diff)
downloadunit-39adb292d54403d17f86f6852e87b0bda1d49946.tar.gz
unit-39adb292d54403d17f86f6852e87b0bda1d49946.tar.bz2
Tests: style.
Diffstat (limited to 'test/test_static_chroot.py')
-rw-r--r--test/test_static_chroot.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_static_chroot.py b/test/test_static_chroot.py
index 4b9d745a..62288807 100644
--- a/test/test_static_chroot.py
+++ b/test/test_static_chroot.py
@@ -2,7 +2,6 @@ import os
from pathlib import Path
import pytest
-
from unit.applications.proto import TestApplicationProto
@@ -132,7 +131,7 @@ class TestStaticChroot(TestApplicationProto):
assert self.get(url=self.test_path)['status'] == 200, 'relative'
- def test_static_chroot_varibales(self, temp_dir):
+ def test_static_chroot_variables(self, temp_dir):
assert 'success' in self.update_action(
temp_dir + '/assets$uri', temp_dir + '/assets/$host'
)
@@ -143,21 +142,21 @@ class TestStaticChroot(TestApplicationProto):
)
assert self.get_custom('/dir/file', 'dir') == 200
- def test_static_chroot_varibales_buildin_start(self, temp_dir):
+ def test_static_chroot_variables_buildin_start(self, temp_dir):
assert 'success' in self.update_action(
temp_dir + '/assets/dir/$host', '$uri/assets/dir'
)
assert self.get_custom(temp_dir, 'file') == 200
- def test_static_chroot_varibales_buildin_mid(self, temp_dir):
+ def test_static_chroot_variables_buildin_mid(self, temp_dir):
assert 'success' in self.update_action(
temp_dir + '/assets$uri', temp_dir + '/$host/dir'
)
assert self.get_custom('/dir/file', 'assets') == 200
- def test_static_chroot_varibales_buildin_end(self, temp_dir):
+ def test_static_chroot_variables_buildin_end(self, temp_dir):
assert 'success' in self.update_action(
temp_dir + '/assets$uri', temp_dir + '/assets/$host'
)