mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update grafana_datasource test to check for empty dict being returned on no changes, rather than None
This commit is contained in:
parent
f115452653
commit
5378e4fd07
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue