19 lines
344 B
Python
19 lines
344 B
Python
import unittest
|
|
from pathlib import Path
|
|
|
|
from app.App import App
|
|
|
|
|
|
class test_FtpService(unittest.TestCase):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
App.init()
|
|
|
|
def test_download(self):
|
|
App.services.ftpService.download(path=Path(".gitkeep"))
|
|
|
|
def test_download2(self):
|
|
for d in App.services.ftpService.scan():
|
|
print(d.name.endswith())
|