Skip to content

Commit

Permalink
More pylint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
delucchi-cmu committed Aug 13, 2024
1 parent a7399b8 commit 414e624
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
19 changes: 2 additions & 17 deletions tests/hipscat/pixel_tree/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/hipscat/pixel_tree/test_pixel_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 414e624

Please sign in to comment.