I am using a (as far as I can tell) Raspberry Pi specific library (smbus) for my project. I would like to use pytest to test the software both on my machine and with gitlab-ci on my school's server. Not that it matters, but this is for a club project not homework.
A description of my environment:
I am using Ubuntu 17.04/PyCharm for my development environment. The gitlab runner that I have access to is docker based (I choose the environment).
Neither of the above two have the ability for smbus or the ability for i2c comms.
I am wondering if it is possible to tell pytest to ignore the smbus import without adding a try/except around the import?
Thanks.