From 27f26e35eb01afeda402132da93dfd37ded7b9a9 Mon Sep 17 00:00:00 2001 From: Doug Latornell Date: Fri, 20 Dec 2024 16:14:44 -0800 Subject: [PATCH] Revert test URL change from GitHub to Bitbucket Replaced GitHub links with Bitbucket links in test cases because the function under test is for Bitbucket URLs. The test URLs were changed to github.com in an overzealous global search/replace operation. --- SalishSeaTools/tests/test_nc_tools.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SalishSeaTools/tests/test_nc_tools.py b/SalishSeaTools/tests/test_nc_tools.py index 907e36b4..e68ea02b 100644 --- a/SalishSeaTools/tests/test_nc_tools.py +++ b/SalishSeaTools/tests/test_nc_tools.py @@ -417,12 +417,12 @@ def test_init_dataset_attrs_no_oversrite_quiet( @patch( 'salishsea_tools.nc_tools.hg.default_url', - return_value='ssh://hg@github.com/SalishSeaCast/foo') + return_value='ssh://hg@bitbucket.org/SalishSeaCast/foo') def test_notebook_hg_url(mock_dflt_url): """_notebook_hg_url returns expected URL """ url = nc_tools._notebook_hg_url('bar.ipynb') - assert url == 'https://github.com/SalishSeaCast/foo/src/tip/bar.ipynb' + assert url == 'https://bitbucket.org/SalishSeaCast/foo/src/tip/bar.ipynb' def test_notebook_hg_url_no_notebook_name(): @@ -442,22 +442,22 @@ def test_notebook_hg_url_REQUIRED(mock_dflt_url): @patch( 'salishsea_tools.nc_tools.hg.default_url', - return_value='ssh://hg@github.com/SalishSeaCast/foo') + return_value='ssh://hg@bitbucket.org/SalishSeaCast/foo') def test_notebook_hg_url_adds_ipynb(mock_dflt_url): """_notebook_hg_url adds .ipynb extension if notebook name lacks it """ url = nc_tools._notebook_hg_url('bar') - assert url == 'https://github.com/SalishSeaCast/foo/src/tip/bar.ipynb' + assert url == 'https://bitbucket.org/SalishSeaCast/foo/src/tip/bar.ipynb' @patch( 'salishsea_tools.nc_tools.hg.default_url', - return_value='ssh://hg@github.com/SalishSeaCast/foo') + return_value='ssh://hg@bitbucket.org/SalishSeaCast/foo') def test_nc_file_hg_url(mock_dflt_url): """_nc_file_hg_url returns expected URL """ url = nc_tools._nc_file_hg_url('../bar/baz.nc') - assert url == 'https://github.com/SalishSeaCast/foo/src/tip/baz.nc' + assert url == 'https://bitbucket.org/SalishSeaCast/foo/src/tip/baz.nc' def test_nc_file_hg_url_no_nc_filepath():