$65 GRAYBYTE WORDPRESS FILE MANAGER $56

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/tap/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/tap//adapter.py
class Adapter:
    """The adapter processes a TAP test line and updates a unittest result.

    It is an alternative to TestCase to collect TAP results.
    """

    failureException = AssertionError

    def __init__(self, filename, line):
        self._filename = filename
        self._line = line

    def shortDescription(self):
        """Get the short description for verbeose results."""
        return self._line.description

    def __call__(self, result):
        """Update test result with the lines in the TAP file.

        Provide the interface that TestCase provides to a suite or runner.
        """
        result.startTest(self)

        if self._line.skip:
            result.addSkip(None, self._line.directive.reason)
            return

        if self._line.todo:
            if self._line.ok:
                result.addUnexpectedSuccess(self)
            else:
                result.addExpectedFailure(self, (Exception, Exception(), None))
            return

        if self._line.ok:
            result.addSuccess(self)
        else:
            self.addFailure(result)

    def addFailure(self, result):
        """Add a failure to the result."""
        result.addFailure(self, (Exception, Exception(), None))
        # Since TAP will not provide assertion data, clean up the assertion
        # section so it is not so spaced out.
        test, err = result.failures[-1]
        result.failures[-1] = (test, "")

    def __repr__(self):
        return f"<file={self._filename}>"

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 3.08 AM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
tests
--
14 Aug 2025 9.30 PM
root / root
0755
__init__.py
0.083 KB
17 Apr 2025 8.10 PM
root / root
0644
__main__.py
0.047 KB
17 Apr 2025 8.10 PM
root / root
0644
adapter.py
1.474 KB
17 Apr 2025 8.10 PM
root / root
0644
directive.py
1.749 KB
17 Apr 2025 8.10 PM
root / root
0644
formatter.py
0.744 KB
17 Apr 2025 8.10 PM
root / root
0644
line.py
4.563 KB
17 Apr 2025 8.10 PM
root / root
0644
loader.py
2.874 KB
17 Apr 2025 8.10 PM
root / root
0644
main.py
2.074 KB
17 Apr 2025 8.10 PM
root / root
0644
parser.py
6.628 KB
17 Apr 2025 8.10 PM
root / root
0644
rules.py
3.299 KB
17 Apr 2025 8.10 PM
root / root
0644
runner.py
4.947 KB
17 Apr 2025 8.10 PM
root / root
0644
tracker.py
7.398 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF