Skip to content

Commit

Permalink
alter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzovagliano committed Oct 21, 2024
1 parent 734898d commit 4159221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions tests/integration/iop/test_iop_dag_pull_sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ def test_dag_run(dag, dag_was_paused: bool, iop_empty_repo):
)


def test_dag_migrate_from_FTP():
iop_empty_repo = IOPRepository()
iop_empty_repo.delete_all()

def test_dag_migrate_from_FTP(iop_empty_repo):
assert len(iop_empty_repo.find_all()) == 0
with IOPSFTPService() as sftp:
migrate_from_ftp(
Expand All @@ -114,8 +111,6 @@ def test_dag_migrate_from_FTP():
},
)

time.sleep(5)

expected_files = [
{
"pdf": "extracted/2022-07-30T03_02_01_content/1674-1137/1674-1137_46/1674-1137_46_8/1674-1137_46_8_085001/cpc_46_8_085001.pdf",
Expand Down
7 changes: 1 addition & 6 deletions tests/integration/iop/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ def iop_empty_repo():
yield repo


def test_pull_from_sftp():
iop_empty_repo = IOPRepository()
iop_empty_repo.delete_all()

def test_pull_from_sftp(iop_empty_repo):
with IOPSFTPService() as sftp:
migrate_from_ftp(
sftp,
Expand All @@ -35,8 +32,6 @@ def test_pull_from_sftp():
}
)

time.sleep(5)

expected_files = [
{
"pdf": "extracted/2022-07-30T03_02_01_content/1674-1137/1674-1137_46/1674-1137_46_8/1674-1137_46_8_085001/cpc_46_8_085001.pdf",
Expand Down

0 comments on commit 4159221

Please sign in to comment.