示例#1
0
    def setUpClass(cls):

        url = "https://github.com/danielhrisca/asammdf/files/1834464/test.demo.zip"
        urllib.request.urlretrieve(url, "test.zip")

        cls.tempdir_demo = tempfile.TemporaryDirectory()
        cls.tempdir_general = tempfile.TemporaryDirectory()
        cls.tempdir = tempfile.TemporaryDirectory()
        cls.tempdir_array = tempfile.TemporaryDirectory()

        ZipFile(r"test.zip").extractall(cls.tempdir_demo.name)
        Path("test.zip").unlink()
        for version in ("3.30", "4.10"):
            generate_test_file(cls.tempdir_general.name, version)

        generate_arrays_test_file(cls.tempdir_array.name)
示例#2
0
    def setUpClass(cls):
        PYVERSION = sys.version_info[0]

        url = "https://github.com/danielhrisca/asammdf/files/1834464/test.demo.zip"
        if PYVERSION == 3:
            urllib.request.urlretrieve(url, "test.zip")
        else:
            urllib.urlretrieve(url, "test.zip")
        ZipFile(r"test.zip").extractall("tmpdir_demo")

        if not os.path.exists("tmpdir"):
            os.mkdir("tmpdir")
        if not os.path.exists("tmpdir_array"):
            os.mkdir("tmpdir_array")
        for version in ("3.30", "4.10"):
            generate_test_file(version)

        generate_arrays_test_file()
示例#3
0
    def setUpClass(cls):
        PYVERSION = sys.version_info[0]

        url = 'https://github.com/danielhrisca/asammdf/files/1594267/test.demo.zip'
        if PYVERSION == 3:
            urllib.request.urlretrieve(url, 'test.zip')
        else:
            urllib.urlretrieve(url, 'test.zip')
        ZipFile(r'test.zip').extractall('tmpdir_demo')

        if not os.path.exists('tmpdir'):
            os.mkdir('tmpdir')
        if not os.path.exists('tmpdir_array'):
            os.mkdir('tmpdir_array')
        for version in ('3.30', '4.10'):
            generate_test_file(version)

        generate_arrays_test_file()