Skip to content

Commit

Permalink
updates test dates for recent activity
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature authored Jul 18, 2023
1 parent 6ac53f8 commit bb9aff2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ def test_fetch_account_activity_from(self, ig_service: IGService):
assert response.shape[1] == 9

def test_fetch_account_activity_from_to(self, ig_service: IGService):
to_date = datetime(2021, 7, 31)
to_date = datetime(2023, 7, 18)
from_date = to_date - timedelta(days=7)
response = ig_service.fetch_account_activity(from_date=from_date, to_date=to_date)
assert isinstance(response, pd.DataFrame)
assert response.shape[1] == 9

def test_fetch_account_activity_detailed(self, ig_service):
to_date = datetime(2021, 7, 31)
to_date = datetime(2023, 7, 18)
from_date = to_date - timedelta(days=7)
response = ig_service.fetch_account_activity(from_date=from_date, to_date=to_date, detailed=True)
assert isinstance(response, pd.DataFrame)
Expand All @@ -150,7 +150,7 @@ def test_fetch_account_activity_old(self, ig_service: IGService):
assert response.shape[0] == 0

def test_fetch_account_activity_fiql(self, ig_service: IGService):
to_date = datetime(2021, 7, 31)
to_date = datetime(2023, 7, 18)
from_date = to_date - timedelta(days=30)
response = ig_service.fetch_account_activity(from_date=from_date, to_date=to_date,
fiql_filter='channel==PUBLIC_WEB_API')
Expand Down

0 comments on commit bb9aff2

Please sign in to comment.