Tests: style.

This commit is contained in:
Andrei Zeliankou
2021-10-18 01:10:11 +01:00
parent 78a4063063
commit 39adb292d5
51 changed files with 19 additions and 74 deletions

View File

@@ -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'
)