From 715f429425487dada0f5947cfe0c43636ed306ae Mon Sep 17 00:00:00 2001 From: Luis Rodrigues Date: Tue, 22 Apr 2025 21:18:28 +0100 Subject: [PATCH] =?UTF-8?q?eliminado=20c=C3=B3digo=20comentado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_copier.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/tests/test_copier.py b/tests/test_copier.py index d277bca..71854bf 100644 --- a/tests/test_copier.py +++ b/tests/test_copier.py @@ -1,31 +1,6 @@ import pytest -# from pathlib import Path from modules.copier import copiar_ficheiros_para_destino -# import tempfile - -# class TestCopier(unittest.TestCase): -# def setUp(self) -> None: -# self.origem = tempfile.TemporaryDirectory() -# self.destino = tempfile.TemporaryDirectory() -# (Path(self.origem.name) / "teste.txt").write_text("conteudo") -# -# def tearDown(self) -> None: -# self.origem.cleanup() -# self.destino.cleanup() -# -# def test_copiar_ficheiros_para_destino(self): -# ficheiros = [str(f) for f in Path(self.origem.name).iterdir()] -# copiar_ficheiros_para_destino( -# ficheiros, self.destino.name, categorizar_data=False -# ) -# copiados = list(Path(self.destino.name).rglob("teste.txt")) -# self.assertEqual(len(copiados), 1) -# self.assertTrue(copiados[0].exists()) -# -# -# if __name__ == "__main__": -# unittest.main() def test_copiar_ficheiros_para_destino(tmp_path):