Fix test code
The automated test tests/testEvents.py
needs the following adjustments:
-
change name according to naming convention (snake_case) -
code refactoring, such that pytest is used and main-function and global calls are removed
It's probably a good idea to outsource code that does authentication into a file named conftest.py
and use it as a fixture.
Moreover, storing credentials within python scripts is really bad practice. A better way is to use environment variables. Example code can be found here.
Edited by GromeTT