mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1k stars 157 forks source link

Some test needs root password during their execution #575

Open galbini opened 2 weeks ago

galbini commented 2 weeks ago

Description

Some test needs root password during their execution. tests/test_config.py::TestConfig::test_full_hierarchy Password: tests/test_custom_handler.py::TestCarbonCustomHandler::test_carbon_tracker_custom_handler tests/test_custom_handler.py::TestCarbonCustomHandler::test_decorator_flush tests/test_emissions_tracker_constant.py::TestCarbonTrackerConstant::test_carbon_tracker_offline_constant

I stopped at 50% of execution

What I Did

hatch run test:package
inimaz commented 1 week ago

Hey @galbini! Normally this should have been solved by https://github.com/mlco2/codecarbon/commit/5744a3e1e67ebd9988ce2341a98887d50e712a5e which was merged recently.

Could you pull the last version and try again?

inimaz commented 1 week ago

Possible duplicate of #565