Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
sdc50 committed Dec 2, 2024
1 parent 439909f commit 8b5001f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/unit_tests/test_tethys_apps/test_base/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,20 +263,20 @@ def test_register_controllers_catch_all(
def test__get_url_map_kwargs_list_url_dict(self):
result = tethys_controller._get_url_map_kwargs_list(
url={
'test': 'test/url/',
'another_test': 'test/{another}/url/',
"test": "test/url/",
"another_test": "test/{another}/url/",
}
)
self.assertEqual(result[0]['title'], 'Test')
self.assertEqual(result[1]['title'], 'Another Test')
self.assertEqual(result[0]["title"], "Test")
self.assertEqual(result[1]["title"], "Another Test")

def test__get_url_map_kwargs_list_url_list(self):
result = tethys_controller._get_url_map_kwargs_list(
name='test',
name="test",
url=[
'test/url/',
'test/{another}/url/',
]
"test/url/",
"test/{another}/url/",
],
)
self.assertEqual(result[0]['title'], 'Test')
self.assertEqual(result[1]['title'], 'Test 1')
self.assertEqual(result[0]["title"], "Test")
self.assertEqual(result[1]["title"], "Test 1")

0 comments on commit 8b5001f

Please sign in to comment.