...
 
Commits (6)
-r requirements.txt
pytest
pytest==5.1.2
ipdb
flake8
pep8-naming
......
......@@ -2,3 +2,4 @@ requests>=0.10
pycrypto
pathlib==1.0.1
tenacity>=5.1.5,<6.0.0
joblib==0.14.0
This diff is collapsed.
......@@ -20,7 +20,7 @@ def folder_name():
@pytest.fixture
def mega(folder_name):
mega_ = Mega()
mega_ = Mega({'verbose': True}, timeout=300)
mega_.login(email=os.environ['EMAIL'], password=os.environ['PASS'])
created_nodes = mega_.create_folder(folder_name)
yield mega_
......@@ -154,6 +154,17 @@ class TestFind:
assert mega.find(path)
@pytest.mark.xfail
def test_find_file2(self, mega, folder_name):
folder = mega.find(folder_name)
dest_node_id = folder[1]['h']
mega.upload(
__file__, dest=dest_node_id, dest_filename='test.py'
)
path = f'{folder_name}/te*.py'
assert mega.find(path)
def test_path_not_found_returns_none(self, mega):
assert mega.find('not_found') is None
......