Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deprecate date last method #170

Merged
merged 3 commits into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading