Remove unused/unreachable unit test code (#82160)
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user