From b4497f708d7b7f2e04e8e7b8ffc80e61d0896796 Mon Sep 17 00:00:00 2001 From: Mariano Ramirez Date: Mon, 8 Jul 2024 11:45:14 -0400 Subject: [PATCH] fix test --- src/cities_light/tests/test_downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cities_light/tests/test_downloader.py b/src/cities_light/tests/test_downloader.py index 12a4e2f9..dac702ad 100644 --- a/src/cities_light/tests/test_downloader.py +++ b/src/cities_light/tests/test_downloader.py @@ -198,7 +198,7 @@ def test_download(self, m_check, m_need): with mock.patch('cities_light.downloader.urlopen', return_value=tmpfile): - module_name = '{}.b.open'.format(__name__) + module_name = '{}.b.open'.format('cities_light.downloader.urlopen') mock_open = mock.mock_open() # The downoader.needs_downloading will return true and last three # lines of downloader.download will copy the source to sestination