Closed mfenner closed 10 years ago
I didn't want to create test fixtures, as this project is probably moving to factories soon. I tried to change the existing code as little as possible, in the future we might consider refactoring some of the methods for easier unit testing.
Looking good Martin, thanks! Merging.
This pull requests gracefully handles situations where the ALM API returns no event data for
counter
orpmc
and fixes #13. Added unit tests to confirm that thegenerate_data_for_usage_chart
method works as expected. Also made a small tweak to the Javascript handling the missing data.