Skip to content

Commit b13e667

Browse files
committed
993 remove self to prep for declassification
1 parent 8c5139e commit b13e667

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_collection.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def test_to_dict_no_self_href() -> None:
364364

365365

366366
class ExtentTest(unittest.TestCase):
367-
def test_temporal_extent_init_typing(self) -> None:
367+
def test_temporal_extent_init_typing() -> None:
368368
# This test exists purely to test the typing of the intervals argument to
369369
# TemporalExtent
370370
start_datetime = str_to_datetime("2022-01-01T00:00:00Z")
@@ -373,7 +373,7 @@ def test_temporal_extent_init_typing(self) -> None:
373373
_ = TemporalExtent([[start_datetime, end_datetime]])
374374

375375
@pytest.mark.block_network()
376-
def test_temporal_extent_allows_single_interval(self) -> None:
376+
def test_temporal_extent_allows_single_interval() -> None:
377377
start_datetime = str_to_datetime("2022-01-01T00:00:00Z")
378378
end_datetime = str_to_datetime("2022-01-31T23:59:59Z")
379379

@@ -383,7 +383,7 @@ def test_temporal_extent_allows_single_interval(self) -> None:
383383
assert temporal_extent.intervals == [interval]
384384

385385
@pytest.mark.block_network()
386-
def test_temporal_extent_allows_single_interval_open_start(self) -> None:
386+
def test_temporal_extent_allows_single_interval_open_start() -> None:
387387
end_datetime = str_to_datetime("2022-01-31T23:59:59Z")
388388

389389
interval = [None, end_datetime]
@@ -392,13 +392,13 @@ def test_temporal_extent_allows_single_interval_open_start(self) -> None:
392392
assert temporal_extent.intervals == [interval]
393393

394394
@pytest.mark.block_network()
395-
def test_temporal_extent_non_list_intervals_fails(self) -> None:
395+
def test_temporal_extent_non_list_intervals_fails() -> None:
396396
with pytest.raises(TypeError):
397397
# Pass in non-list intervals
398398
_ = TemporalExtent(intervals=1) # type: ignore
399399

400400
@pytest.mark.block_network()
401-
def test_spatial_allows_single_bbox(self) -> None:
401+
def test_spatial_allows_single_bbox() -> None:
402402
temporal_extent = TemporalExtent(intervals=[[TEST_DATETIME, None]])
403403

404404
# Pass in a single BBOX
@@ -416,12 +416,12 @@ def test_spatial_allows_single_bbox(self) -> None:
416416
collection.validate()
417417

418418
@pytest.mark.block_network()
419-
def test_spatial_extent_non_list_bboxes_fails(self) -> None:
419+
def test_spatial_extent_non_list_bboxes_fails() -> None:
420420
with pytest.raises(TypeError):
421421
# Pass in non-list bboxes
422422
_ = SpatialExtent(bboxes=1) # type: ignore
423423

424-
def test_from_items(self) -> None:
424+
def test_extent_from_items() -> None:
425425
item1 = Item(
426426
id="test-item-1",
427427
geometry=ARBITRARY_GEOM,
@@ -469,7 +469,7 @@ def test_from_items(self) -> None:
469469
assert interval[0] == datetime(2000, 1, 1, 12, 0, 0, 0, tzinfo=tz.UTC)
470470
assert interval[1] == datetime(2001, 1, 1, 12, 0, 0, 0, tzinfo=tz.UTC)
471471

472-
def test_to_from_dict(self) -> None:
472+
def test_extent_to_from_dict() -> None:
473473
spatial_dict = {
474474
"bbox": [
475475
[

0 commit comments

Comments
 (0)