Skip to content

Commit a01f3b8

Browse files
committed
993 make fixtures in test_pointcloud.py
1 parent 8cd984e commit a01f3b8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/extensions/test_pointcloud.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,18 @@
2222
# from copy import deepcopy
2323

2424

25+
@pytest.fixture
26+
def example_uri() -> str:
27+
return TestCases.get_path("data-files/pointcloud/example-laz.json")
28+
29+
30+
@pytest.fixture
31+
def pc_item(example_uri) -> pystac.Item:
32+
return pystac.Item.from_file(example_uri)
33+
34+
2535
class PointcloudTest(unittest.TestCase):
2636
def setUp(self) -> None:
27-
self.maxDiff = None
2837
self.example_uri = TestCases.get_path("data-files/pointcloud/example-laz.json")
2938
self.example_uri_no_statistics = TestCases.get_path(
3039
"data-files/pointcloud/example-laz-no-statistics.json"
@@ -341,7 +350,6 @@ def test_asset_ext_add_to(self) -> None:
341350

342351
class PointcloudSummariesTest(unittest.TestCase):
343352
def setUp(self) -> None:
344-
self.maxDiff = None
345353
self.collection = pystac.Collection.from_file(
346354
TestCases.get_path("data-files/collections/multi-extent.json")
347355
)

0 commit comments

Comments
 (0)