@pytest.fixture()
def mock_makedirs(monkeypatch):
    ret = mock.Mock()
    monkeypatch.setattr(os, 'makedirs', ret)
    return ret
@pytest.fixture()
def mock_makedirs(monkeypatch):
    ret = mock.Mock()
    monkeypatch.setattr(os, 'makedirs', ret)
    return ret