update unit tests to new behavior

This commit is contained in:
Alan Rominger 2020-09-18 22:37:39 -04:00
parent 0061c57577
commit 3c785fbff3
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -48,6 +48,10 @@ class TestJobExecution(object):
@pytest.fixture
def private_data_dir():
private_data = tempfile.mkdtemp(prefix='awx_')
for subfolder in ('inventory', 'env'):
runner_subfolder = os.path.join(private_data, subfolder)
if not os.path.exists(runner_subfolder):
os.mkdir(runner_subfolder)
yield private_data
shutil.rmtree(private_data, True)