From 190de66c8e3e22614d07bcc257a975f6a742756c Mon Sep 17 00:00:00 2001 From: bleudev Date: Sat, 29 Jun 2024 15:01:16 +0300 Subject: [PATCH] delete tests --- tests/test_github_download.py | 50 ----------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 tests/test_github_download.py diff --git a/tests/test_github_download.py b/tests/test_github_download.py deleted file mode 100644 index 9e07aae..0000000 --- a/tests/test_github_download.py +++ /dev/null @@ -1,50 +0,0 @@ -import unittest -from os import remove - -import ufpy -from ufpy import UGithubDownloader, download_file - - -class UGithubDownloadTestCase(unittest.TestCase): - def test_file(self): - repo = 'honey-team/ufpy' - file = 'README.md' - - download_path = '/usr/ufpy-tests' - file_path = f'{download_path}/README.md' - - # mkdir(download_path) - - # download_file() - download_file(repo, file, download_path) - - with open(file_path, 'r') as f: - file_contents1 = f.read() - - remove(file_path) - - # file() - ufpy.github.download.file(repo, file, download_path) - - with open(file_path, 'r') as f: - file_contents2 = f.read() - - remove(file_path) - - # UGithubDownloader.download_file() - with UGithubDownloader(repo, download_path) as gd: - gd.download_file(file) - - with open(file_path, 'r') as f: - file_contents3 = f.read() - - remove(file_path) - - # Asserts - self.assertEqual(file_contents1, file_contents2) - self.assertEqual(file_contents1, file_contents3) - self.assertEqual(file_contents2, file_contents3) - - -if __name__ == '__main__': - unittest.main()