Skip to content

Commit

Permalink
fix: deprecate date last method (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Jan 28, 2024
2 parents c69b33d + 9dfe229 commit 28becc8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_deprecated.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Test all the deprecated methods that have not been kept in the new implementation."""

from datetime import datetime

import pytest

import geetools
Expand All @@ -17,6 +19,15 @@ def test_stretch_percentile(self):
geetools.visualization.stretch_percentile(None, None)


class TestDate:
"""Test methods from the deprecated_date module."""

def test_millis_to_datetime(self):
with pytest.deprecated_call():
date = geetools.date.millisToDatetime(1527811200000)
assert date == datetime.strptime("2018-06-01", "%Y-%m-%d")


class TestCollection:
"""Test methods from the deprecated_collection module."""

Expand Down

0 comments on commit 28becc8

Please sign in to comment.