From 414e6243661a1e675e58921d37a9c231d0dfaa0b Mon Sep 17 00:00:00 2001 From: Melissa DeLucchi Date: Tue, 13 Aug 2024 11:43:12 -0400 Subject: [PATCH] More pylint warnings. --- tests/hipscat/pixel_tree/conftest.py | 19 ++----------------- tests/hipscat/pixel_tree/test_pixel_tree.py | 4 ++-- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/tests/hipscat/pixel_tree/conftest.py b/tests/hipscat/pixel_tree/conftest.py index cf520084..0c77be80 100644 --- a/tests/hipscat/pixel_tree/conftest.py +++ b/tests/hipscat/pixel_tree/conftest.py @@ -15,23 +15,8 @@ def pixel_tree_1(): @pytest.fixture -def pixel_tree_2_pixels(): - return [ - HealpixPixel(2, 128), - HealpixPixel(2, 130), - HealpixPixel(2, 131), - HealpixPixel(1, 33), - HealpixPixel(1, 35), - HealpixPixel(0, 10), - HealpixPixel(1, 44), - HealpixPixel(1, 45), - HealpixPixel(1, 46), - ] - - -@pytest.fixture -def pixel_tree_2(pixel_tree_2_pixels): - return PixelTree.from_healpix(pixel_tree_2_pixels) +def pixel_tree_2(pixel_list_breadth_first): + return PixelTree.from_healpix(pixel_list_breadth_first) @pytest.fixture diff --git a/tests/hipscat/pixel_tree/test_pixel_tree.py b/tests/hipscat/pixel_tree/test_pixel_tree.py index 5614cee2..6eb5c1f2 100644 --- a/tests/hipscat/pixel_tree/test_pixel_tree.py +++ b/tests/hipscat/pixel_tree/test_pixel_tree.py @@ -15,8 +15,8 @@ def test_pixel_tree_length(): assert len(tree) == length -def test_get_healpix_pixels(pixel_tree_2, pixel_tree_2_pixels): - assert pixel_tree_2.get_healpix_pixels() == pixel_tree_2_pixels +def test_get_healpix_pixels(pixel_tree_2, pixel_list_breadth_first): + assert pixel_tree_2.get_healpix_pixels() == pixel_list_breadth_first def test_pixel_tree_max_depth(pixel_tree_1, pixel_tree_2, pixel_tree_3):