Update grafana_datasource test to check for empty dict being returned on no changes, rather than None

This commit is contained in:
Orlando Richards 2018-04-20 10:04:30 +01:00
parent f115452653
commit 5378e4fd07

View file

@ -59,7 +59,7 @@ class GrafanaDatasourceTestCase(TestCase, LoaderModuleMockMixin):
)
self.assertTrue(ret['result'])
self.assertEqual(ret['comment'], 'Data source test already up-to-date')
self.assertEqual(ret['changes'], None)
self.assertEqual(ret['changes'], {})
with patch('requests.put') as rput:
ret = grafana_datasource.present('test', 'type', 'newurl', profile=profile)