petretiandrea / plugp100

Work in progress implementation of tapo protocol in python.
GNU General Public License v3.0
71 stars 27 forks source link

Plugp100 causes error during testing when attempting to use getsentry/responses project #186

Open timothy-holmes opened 6 months ago

timothy-holmes commented 6 months ago

Responses (getsentry/responses) usage is currently prevented during the testing of a project that uses plugp100.

The unintended behaviour occurs because the plugp100 module of the same name is found preferentially. This line in the top-level __init__.py file causes the behaviour:

sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))

This line was presumably used to compensate for ill-defined imports within plugp100. Removal of this line does not break plugp100 as all bad import statements have already been removed.