/
githubmirror
/
XX-Net
Обзор
Документация
Войти
/
githubmirror
/
XX-Net
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
code/default/launcher/tests/test_update.py
14 строк
403 B
Michael.X
fix bug and add auto testing.
29 янв 2022, 12:52
29 янв 2022, 12:52
9d4dae5
Код
Авторство
О чём код?
import os.path import unittest import tempfile import os from launcher.update_from_github import download_file class UpdateTest(unittest.TestCase): def test_download(self): tp = tempfile.gettempdir() fn = os.path.join(tp, "v4.txt") res = download_file("https://raw.githubusercontent.com/XX-net/XX-Net/master/code/default/update_v4.txt", fn) self.assertTrue(res)