Controller testing: API' object has no attribute 'host

return convert_excel_to_pdf(excel_file_bytes)

viktor\utils.pyx:513: in viktor.utils.convert_excel_to_pdf
viktor\utils.pyx:446: in viktor.utils._convert_libreoffice_to_pdf

E AttributeError: ‘API’ object has no attribute ‘host’

viktor\api_v1.pyx:1043: AttributeError

Hello, does somebody know how I can use a viktor function (in this case convert_excel_to_pdf) and still run my controller tests?

Thanks in advance.

Hi Klaas,
Here you can find information on testing code with API calls: Mocking | VIKTOR Documentation

Hopefully this helps,