Skip to content

Commit

Permalink
scan: remove nasty symlink test
Browse files Browse the repository at this point in the history
* no longer needed as scans are depth-limited anyway
  • Loading branch information
oliver-sanders committed Jul 31, 2020
1 parent f36536e commit 8e33040
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/integration/test_scan_nt.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,6 @@ def run_dir_with_nasty_symlinks():
rmtree(tmp_path)


@pytest.fixture(scope='session')
def run_dir_with_really_nasty_symlinks():
tmp_path = Path(TemporaryDirectory().name)
tmp_path.mkdir()
flow = Path(tmp_path, 'foo')
flow.mkdir(parents=True)
Path(flow, 'bar').symlink_to(flow)
yield tmp_path
rmtree(tmp_path)


@pytest.fixture(scope='session')
def nested_run_dir():
tmp_path = Path(TemporaryDirectory().name)
Expand Down Expand Up @@ -196,14 +185,6 @@ async def test_scan_nasty_symlinks(run_dir_with_nasty_symlinks):
]


@pytest.mark.asyncio
async def test_scan_really_nasty_symlinks(run_dir_with_really_nasty_symlinks):
"""It should handle infinite symlinks because users can be really nasty."""
with pytest.raises(OSError):
async for flow in scan(run_dir_with_really_nasty_symlinks):
pass


@pytest.mark.asyncio
async def test_is_active(sample_run_dir):
"""It should filter flows by presence of a contact file."""
Expand Down

0 comments on commit 8e33040

Please sign in to comment.