python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 601 forks source link

unit test fixes for testtsdb.py #670

Closed ajkumarnv closed 7 years ago

ajkumarnv commented 7 years ago

test cases in file testtsdb.py were failing intermittently as the expected string was sometimes not equal to the mock_urlopen call args because of behavior of json.dumps. Changed the code so we are comparing the list of dictionary rather than the string.

this fix is a resolution for issue : https://github.com/python-diamond/Diamond/issues/669