psyinfra / prometheus-eaton-ups-exporter

A Prometheus exporter for (some) Eaton UPSs
ISC License
11 stars 5 forks source link

Integrate tests #20

Closed mathisloevenich closed 2 years ago

mathisloevenich commented 3 years ago

To quote @nhjjreuter :

I recommend getting rid of the input and getpass parts. Tests should be automated. 
Instead, use either an .env file (and then import os; os.environ.get('eaton_ups_username')), 
or a .config.json/yaml file that you likewise draw your data from. Then just put the file with the password data in .gitignore