HEPCloud / decisionengine_modules

Apache License 2.0
2 stars 19 forks source link

Added unit tests for dem_htcondor_slots_status_count, dem_htcondor_cores_count, dem_htcondor_memory_count. Fixed issues in source.py. #498

Closed IlyaBaburashvili closed 4 months ago

IlyaBaburashvili commented 4 months ago

Unit tests use cs.fixture to mock Condor and check metric values against those in expected_metric_values.json. In source.py, removed extra for loop in load() and added get_metric_values() to retrieve metric values for unit tests.