diff --git a/pysus/online_data/__init__.py b/pysus/online_data/__init__.py index 00a50db..e655a24 100644 --- a/pysus/online_data/__init__.py +++ b/pysus/online_data/__init__.py @@ -162,7 +162,7 @@ def list_data_sources() -> str: ] # breakpoint() return f"""Currently, the supported databases are: { - ', '.join(supported_databases)}""" + ', '.join(sorted(supported_databases))}""" else: expected_databases = [ "SINAN", diff --git a/pysus/tests/test_init.py b/pysus/tests/test_init.py index 0cea89e..d57df18 100644 --- a/pysus/tests/test_init.py +++ b/pysus/tests/test_init.py @@ -32,7 +32,7 @@ def test_last_update(self): class TestListDataSources(unittest.TestCase): @patch("pysus.online_data.Path.exists") def test_list_data_sources_exists(self, mock_exists): - dbs = "SIM, SIA, SINAN, SINASC, SIH, CNES" + dbs = "CNES, SIA, SIH, SIM, SINAN, SINASC" mock_exists.return_value = True expected_output = f"""Currently, the supported databases are: {dbs}""" self.assertEqual(online_data.list_data_sources(), expected_output)