Remove unused/unreachable unit test code (#82160)

This commit is contained in:
Matt Clay
2023-11-07 12:41:42 -08:00
committed by GitHub
parent 0be33551d7
commit dae4e2f07f
6 changed files with 14 additions and 35 deletions

View File

@ -6,7 +6,6 @@ from __future__ import annotations
import json
import os
import shutil
import tempfile
import pytest
@ -76,7 +75,6 @@ class TestAnsibleModuleTmpDir:
monkeypatch.setattr(tempfile, 'mkdtemp', mock_mkdtemp)
monkeypatch.setattr(os.path, 'exists', lambda x: stat_exists)
monkeypatch.setattr(os, 'makedirs', mock_makedirs)
monkeypatch.setattr(shutil, 'rmtree', lambda x: None)
monkeypatch.setattr(basic, '_ANSIBLE_ARGS', to_bytes(json.dumps({'ANSIBLE_MODULE_ARGS': args})))
with patch('time.time', return_value=42):