Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Jul 23, 2024
1 parent 7be0d14 commit 9af73bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions visualizer/tests/testRestApiExampleCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,13 @@ def test_update_visualization(self):

# Modify the data with a PATCH.
# PUT is also supported, but not shown here.
data = {'dataSourceURL': 'https://www.example.com/a/different/url'}
differentUrl = 'https://www.example.com/a/different/url'
data = {'dataSourceURL': differentUrl}

# PATCH to update
response = requests.patch(url, data=data, headers=headers, timeout=3)

# Verify the change succeeded
self.assertEqual(response.json()['slug'], 'favorite-ice-cream-flavors')
self.assertEqual(response.json()['id'], visId)
self.assertEqual(response.json()['dataSourceURL'], 'https://www.example.com/a/different/url')
self.assertEqual(response.json()['dataSourceURL'], differentUrl)

0 comments on commit 9af73bf

Please sign in to comment.