Skip to content

Commit

Permalink
Remove now useless type comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Nov 13, 2021
1 parent e9886a9 commit 9005a4e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import json

import pytest # type: ignore
import pytest

from analytix import YouTubeAnalytics

Expand Down
15 changes: 14 additions & 1 deletion tests/test_dataframe_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import datetime as dt
import sys

import pytest # type: ignore
import pytest

from analytix import YouTubeAnalytics

Expand All @@ -40,6 +41,10 @@ def client():
return client


@pytest.mark.skipif(
sys.version_info >= (3, 11, 0),
reason="pandas does not support Python 3.11",
)
def test_day_is_datetime(client):
import pandas as pd

Expand All @@ -48,6 +53,10 @@ def test_day_is_datetime(client):
assert pd.api.types.is_datetime64_ns_dtype(df["day"])


@pytest.mark.skipif(
sys.version_info >= (3, 11, 0),
reason="pandas does not support Python 3.11",
)
def test_month_is_datetime(client):
import pandas as pd

Expand All @@ -58,6 +67,10 @@ def test_month_is_datetime(client):
assert pd.api.types.is_datetime64_ns_dtype(df["month"])


@pytest.mark.skipif(
sys.version_info >= (3, 11, 0),
reason="pandas does not support Python 3.11",
)
def test_metrics_are_numeric(client):
import pandas as pd

Expand Down
2 changes: 1 addition & 1 deletion tests/test_factory_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import datetime as dt

import pytest # type: ignore
import pytest

from analytix import YouTubeAnalytics

Expand Down
2 changes: 1 addition & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import json
import os

import pytest # type: ignore
import pytest

from analytix import YouTubeAnalytics

Expand Down
2 changes: 1 addition & 1 deletion tests/test_report_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import datetime as dt

import pytest # type: ignore
import pytest

from analytix import YouTubeAnalytics

Expand Down
2 changes: 1 addition & 1 deletion tests/test_report_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import datetime as dt
import inspect

import pytest # type: ignore
import pytest

from analytix import YouTubeAnalytics
from analytix.errors import HTTPError, InvalidRequest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_report_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import datetime as dt

import pytest # type: ignore
import pytest

from analytix import YouTubeAnalytics
from analytix.errors import InvalidRequest
Expand Down

0 comments on commit 9005a4e

Please sign in to comment.