OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
mako
/
testing
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/07/2025 10:01:31 PM
rwxr-xr-x
📄
__init__.py
0 bytes
12/18/2024 10:23:16 AM
rw-r--r--
📁
__pycache__
-
02/07/2025 10:01:31 PM
rwxr-xr-x
📄
_config.py
3.48 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
assertions.py
5.04 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
config.py
323 bytes
12/18/2024 10:23:16 AM
rw-r--r--
📄
exclusions.py
1.52 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
fixtures.py
2.97 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
helpers.py
1.49 KB
12/18/2024 10:23:16 AM
rw-r--r--
Editing: exclusions.py
Close
import pytest from mako.ext.beaker_cache import has_beaker from mako.util import update_wrapper try: import babel.messages.extract as babel except ImportError: babel = None try: import lingua except ImportError: lingua = None try: import dogpile.cache # noqa except ImportError: has_dogpile_cache = False else: has_dogpile_cache = True requires_beaker = pytest.mark.skipif( not has_beaker, reason="Beaker is required for these tests." ) requires_babel = pytest.mark.skipif( babel is None, reason="babel not installed: skipping babelplugin test" ) requires_lingua = pytest.mark.skipif( lingua is None, reason="lingua not installed: skipping linguaplugin test" ) requires_dogpile_cache = pytest.mark.skipif( not has_dogpile_cache, reason="dogpile.cache is required to run these tests", ) def _pygments_version(): try: import pygments version = pygments.__version__ except: version = "0" return version requires_pygments_14 = pytest.mark.skipif( _pygments_version() < "1.4", reason="Requires pygments 1.4 or greater" ) # def requires_pygments_14(fn): # return skip_if( # lambda: version < "1.4", "Requires pygments 1.4 or greater" # )(fn) def requires_no_pygments_exceptions(fn): def go(*arg, **kw): from mako import exceptions exceptions._install_fallback() try: return fn(*arg, **kw) finally: exceptions._install_highlighting() return update_wrapper(go, fn)