I am trying to setup tests for a custom component which uses oauth2 authorization. When researching how to test a custom component I found this project and I found some oauth2 scaffolding scripts which are part of HA.
The HA scaffolding generated test code for oauth2 works for a core component, but when trying this as part of a custom component it fails with the error below. I have added a conftest.py but that didn't resolve. As it works within the core HA test directory I think this project does something which breaks it.
I am trying to setup tests for a custom component which uses oauth2 authorization. When researching how to test a custom component I found this project and I found some oauth2 scaffolding scripts which are part of HA.
The HA scaffolding generated test code for oauth2 works for a core component, but when trying this as part of a custom component it fails with the error below. I have added a conftest.py but that didn't resolve. As it works within the core HA test directory I think this project does something which breaks it.
In order to analyze this I have isolated everything in a small test repo, see https://github.com/jwillemsen/haoauth2_test.