@pytest.fixture
def fake_local_firmware_file(tmp_path_factory):
    'Creates a fake local firmware file and returns a pathlib.Path object that points to it.'
    fake_firmware_file = (tmp_path_factory.mktemp('fake_firmware') / 'foo.img')
    fake_firmware_file.write_text('foofakefirmware')
    return fake_firmware_file
Creates a fake local firmware file and returns a pathlib.Path object that points to it.
@pytest.fixture
def fake_local_firmware_file(tmp_path_factory):
    
    fake_firmware_file = (tmp_path_factory.mktemp('fake_firmware') / 'foo.img')
    fake_firmware_file.write_text('foofakefirmware')
    return fake_firmware_file