GeneralMills / pytrends

Pseudo API for Google Trends
Other
3.23k stars 817 forks source link

Many tests fail #608

Open yurivict opened 9 months ago

yurivict commented 9 months ago
========================================================================================= FAILURES ==========================================================================================
______________________________________________________________________________ test_interest_over_time_youtube ______________________________________________________________________________

    @pytest.mark.vcr
    def test_interest_over_time_youtube():
        pytrend = TrendReq()
        pytrend.build_payload(
            kw_list=['pizza', 'bagel'],
            gprop='youtube',
            timeframe='2021-01-01 2021-01-05'
        )
        df_result = pytrend.interest_over_time()
        df_expected = build_interest_over_time_df({
            'pizza': [88, 100, 100, 92, 95],
            'bagel': [1, 1, 1, 2, 1]
        }, dates=['2021-01-01', '2021-01-02', '2021-01-03', '2021-01-04', '2021-01-05'])
>       assert_frame_equal(df_result, df_expected)

tests/test_request.py:227: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="pizza") are different
E   
E   DataFrame.iloc[:, 0] (column name="pizza") values are different (80.0 %)
E   [index]: [2021-01-01T00:00:00.000000000, 2021-01-02T00:00:00.000000000, 2021-01-03T00:00:00.000000000, 2021-01-04T00:00:00.000000000, 2021-01-05T00:00:00.000000000]
E   [left]:  [94, 99, 100, 94, 98]
E   [right]: [88, 100, 100, 92, 95]
E   At positional index 0, first diff: 94 != 88

pandas/_libs/testing.pyx:172: AssertionError
______________________________________________________________________________ test_interest_over_time_images _______________________________________________________________________________

    @pytest.mark.vcr
    def test_interest_over_time_images():
        pytrend = TrendReq()
        pytrend.build_payload(
            kw_list=['pizza', 'bagel'],
            gprop='images',
            timeframe='2021-01-01 2021-01-05'
        )
        df_result = pytrend.interest_over_time()
        df_expected = build_interest_over_time_df({
            'pizza': [85, 100, 93, 93, 93],
            'bagel': [3, 2, 9, 4, 4]
        }, dates=['2021-01-01', '2021-01-02', '2021-01-03', '2021-01-04', '2021-01-05'])
>       assert_frame_equal(df_result, df_expected)

tests/test_request.py:195: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="pizza") are different
E   
E   DataFrame.iloc[:, 0] (column name="pizza") values are different (80.0 %)
E   [index]: [2021-01-01T00:00:00.000000000, 2021-01-02T00:00:00.000000000, 2021-01-03T00:00:00.000000000, 2021-01-04T00:00:00.000000000, 2021-01-05T00:00:00.000000000]
E   [left]:  [89, 97, 84, 93, 100]
E   [right]: [85, 100, 93, 93, 93]
E   At positional index 0, first diff: 89 != 85

pandas/_libs/testing.pyx:172: AssertionError
____________________________________________________________________ test_multirange_interest_over_time_same_keyword_ok _____________________________________________________________________

    @pytest.mark.vcr
    def test_multirange_interest_over_time_same_keyword_ok():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza', 'pizza'], timeframe=['2021-01-01 2021-01-05', '2021-01-06 2021-01-10'])
        df_result = pytrend.multirange_interest_over_time()

        expected_result = ExpectedResult(
            length=6,
            df_head=pd.DataFrame({
                '[0] pizza date': ['Average', 'Jan 1, 2021', 'Jan 2, 2021'],
                '[0] pizza value': [72, 100, 83],
                '[1] pizza date': ['Average', 'Jan 6, 2021', 'Jan 7, 2021'],
                '[1] pizza value': [68, 52, 52]
            }),
            df_tail=pd.DataFrame({
                '[0] pizza date': ['Jan 3, 2021', 'Jan 4, 2021', 'Jan 5, 2021'],
                '[0] pizza value': [78, 49, 50],
                '[1] pizza date': ['Jan 8, 2021', 'Jan 9, 2021', 'Jan 10, 2021'],
                '[1] pizza value': [70, 89, 74]
            }, index=pd.Index([3, 4, 5]))
        )
>       expected_result.assert_equals(df_result)

tests/test_request.py:299: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_request.py:29: in assert_equals
    assert_frame_equal(df_result.head(self.head_tail_length), self.df_head)
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 1] (column name="[0] pizza value") are different
E   
E   DataFrame.iloc[:, 1] (column name="[0] pizza value") values are different (33.33333 %)
E   [index]: [0, 1, 2]
E   [left]:  [72, 100, 81]
E   [right]: [72, 100, 83]
E   At positional index 2, first diff: 81 != 83

pandas/_libs/testing.pyx:172: AssertionError
______________________________________________________________________________ test_related_topics_result_top _______________________________________________________________________________

    @pytest.mark.vcr
    def test_related_topics_result_top():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza'], timeframe='2021-01-01 2021-12-31')
        df_result = pytrend.related_topics()['pizza']['top']
        expected_result = ExpectedResult(
            length=21,
            df_head=pd.DataFrame({
                'value': [100, 23, 12],
                'formattedValue': ['100', '23', '12'],
                'hasData': [True, True, True],
                'link': [
                    '/trends/explore?q=/m/0663v&date=2021-01-01+2021-12-31',
                    '/trends/explore?q=/m/09cfq&date=2021-01-01+2021-12-31',
                    '/trends/explore?q=/m/03clwm&date=2021-01-01+2021-12-31'
                ],
                'topic_mid': ['/m/0663v', '/m/09cfq', '/m/03clwm'],
                'topic_title': ['Pizza', 'Pizza Hut', "Domino's"],
                'topic_type': ['Dish', 'Restaurant chain', 'Restaurant chain'],
            }),
            df_tail=pd.DataFrame({
                'value': [0, 0, 0],
                'formattedValue': ['<1', '<1', '<1'],
                'hasData': [True, True, True],
                'link': [
                    '/trends/explore?q=/g/11b7c9w1y6&date=2021-01-01+2021-12-31',
                    '/trends/explore?q=/m/09nghg&date=2021-01-01+2021-12-31',
                    '/trends/explore?q=/m/0gwh_4&date=2021-01-01+2021-12-31',
                ],
                'topic_mid': ['/g/11b7c9w1y6', '/m/09nghg', '/m/0gwh_4'],
                'topic_title': ["Roman's Pizza", 'Sam Goody', 'Detroit-style pizza'],
                'topic_type': ['Topic', 'Retail company', 'Food']
            }, index=pd.Index([18, 19, 20]))
        )
>       expected_result.assert_equals(df_result)

tests/test_request.py:392: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = ExpectedResult(length=21, df_head=   value formattedValue  hasData                                               link ...ends/explore?q=/m/0gwh_4&date=2021-01-01+20...      /m/0gwh_4  Detroit-style pizza            Food, head_tail_length=3)
df_result =     value formattedValue  hasData                                               link      topic_mid                   ...trends/explore?q=/g/11k19hmrkk&date=2021-01-0...  /g/11k19hmrkk                      Licorice Pizza           2021 film

    def assert_equals(self, df_result: pd.DataFrame):
>       assert len(df_result) == self.length
E       AssertionError: assert 20 == 21
E        +  where 20 = len(    value  ...          topic_type\n0     100  ...                Dish\n1      27  ...    Restaurant chain\n2      16  ...    Restaurant chain\n3       8  ...               Topic\n4       4  ...                Food\n5       4  ...            Commerce\n6       4  ...   Cooking appliance\n7       2  ...               Topic\n8       2  ...    Restaurant chain\n9       2  ...               Topic\n10      2  ...           Foodstuff\n11      2  ...  Restaurant company\n12      2  ...               Topic\n13      2  ...  Restaurant company\n14      1  ...  Restaurant company\n15      1  ...    Restaurant chain\n16      1  ...  Restaurant company\n17      1  ...    Restaurant chain\n18      1  ...                Food\n19      0  ...           2021 film\n\n[20 rows x 7 columns])
E        +  and   21 = ExpectedResult(length=21, df_head=   value formattedValue  hasData  ...  topic_mid topic_title        topic_type\n0    100            100     True  ...   /m/0663v       Pizza              Dish\n1     23             23     True  ...   /m/09cfq   Pizza Hut  Restaurant chain\n2     12             12     True  ...  /m/03clwm    Domino's  Restaurant chain\n\n[3 rows x 7 columns], df_tail=    value formattedValue  ...          topic_title      topic_type\n18      0             <1  ...        Roman's Pizza           Topic\n19      0             <1  ...            Sam Goody  Retail company\n20      0             <1  ...  Detroit-style pizza            Food\n\n[3 rows x 7 columns], head_tail_length=3).length

tests/test_request.py:28: AssertionError
_______________________________________________________________________________ test_interest_over_time_news ________________________________________________________________________________

    @pytest.mark.vcr
    def test_interest_over_time_news():
        pytrend = TrendReq()
        pytrend.build_payload(
            kw_list=['pizza', 'bagel'],
            gprop='news',
            timeframe='2021-01-01 2021-01-05'
        )
        df_result = pytrend.interest_over_time()
        df_expected = build_interest_over_time_df({
            'pizza': [100, 67, 78, 32, 75],
            'bagel': [0, 0, 0, 20, 0]
        }, dates=['2021-01-01', '2021-01-02', '2021-01-03', '2021-01-04', '2021-01-05'])
>       assert_frame_equal(df_result, df_expected)

tests/test_request.py:211: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="pizza") are different
E   
E   DataFrame.iloc[:, 0] (column name="pizza") values are different (100.0 %)
E   [index]: [2021-01-01T00:00:00.000000000, 2021-01-02T00:00:00.000000000, 2021-01-03T00:00:00.000000000, 2021-01-04T00:00:00.000000000, 2021-01-05T00:00:00.000000000]
E   [left]:  [87, 75, 100, 27, 60]
E   [right]: [100, 67, 78, 32, 75]
E   At positional index 0, first diff: 87 != 100

pandas/_libs/testing.pyx:172: AssertionError
___________________________________________________________________________ test_multirange_interest_over_time_ok ___________________________________________________________________________

    @pytest.mark.vcr
    def test_multirange_interest_over_time_ok():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza', 'bagel'], timeframe=['2021-01-01 2021-01-05', '2021-01-06 2021-01-10'])
        df_result = pytrend.multirange_interest_over_time()

        expected_result = ExpectedResult(
            length=6,
            df_head=pd.DataFrame({
                '[0] pizza date': ['Average', 'Jan 1, 2021', 'Jan 2, 2021'],
                '[0] pizza value': [72, 100, 83],
                '[1] bagel date': ['Average', 'Jan 6, 2021', 'Jan 7, 2021'],
                '[1] bagel value': [1, 1, 1]
            }),
            df_tail=pd.DataFrame({
                '[0] pizza date': ['Jan 3, 2021', 'Jan 4, 2021', 'Jan 5, 2021'],
                '[0] pizza value': [78, 49, 50],
                '[1] bagel date': ['Jan 8, 2021', 'Jan 9, 2021', 'Jan 10, 2021'],
                '[1] bagel value': [1, 2, 2]
            }, index=pd.Index([3, 4, 5]))
        )
>       expected_result.assert_equals(df_result)

tests/test_request.py:275: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_request.py:29: in assert_equals
    assert_frame_equal(df_result.head(self.head_tail_length), self.df_head)
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 1] (column name="[0] pizza value") are different
E   
E   DataFrame.iloc[:, 1] (column name="[0] pizza value") values are different (33.33333 %)
E   [index]: [0, 1, 2]
E   [left]:  [72, 100, 81]
E   [right]: [72, 100, 83]
E   At positional index 2, first diff: 81 != 83

pandas/_libs/testing.pyx:172: AssertionError
_________________________________________________________________________________ test_trending_searches_ok _________________________________________________________________________________

    @pytest.mark.vcr
    def test_trending_searches_ok():
        pytrend = TrendReq()
        # trending_searches doesn't need to call build_payload.
        df_result = pytrend.trending_searches()
        # NOTE: This expected result needs to be rebuilt from scratch every time the cassette is rewritten.
        # They're time-dependent.
        expected_result = ExpectedResult(
            length=20,
            df_head=pd.DataFrame({0: ['Chabelo', 'Jonathan Majors', 'Benavidez vs Plant']}),
            df_tail=pd.DataFrame(
                {0: ['Gonzaga', 'Reese Witherspoon', 'France vs Netherlands']},
                index=pd.Index([17, 18, 19])
            )
        )
>       expected_result.assert_equals(df_result)

tests/test_request.py:509: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_request.py:29: in assert_equals
    assert_frame_equal(df_result.head(self.head_tail_length), self.df_head)
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="0") are different
E   
E   DataFrame.iloc[:, 0] (column name="0") values are different (100.0 %)
E   [index]: [0, 1, 2]
E   [left]:  [Japan earthquake, Chargers, Mason Rudolph]
E   [right]: [Chabelo, Jonathan Majors, Benavidez vs Plant]
E   At positional index 0, first diff: Japan earthquake != Chabelo

pandas/_libs/testing.pyx:172: AssertionError
______________________________________________________________________________ test_interest_over_time_froogle ______________________________________________________________________________

    @pytest.mark.vcr
    def test_interest_over_time_froogle():
        pytrend = TrendReq()
        pytrend.build_payload(
            kw_list=['pizza', 'bagel'],
            gprop='froogle',
            timeframe='2021-01-01 2021-01-05'
        )
        df_result = pytrend.interest_over_time()
        df_expected = build_interest_over_time_df({
            'pizza': [94, 99, 94, 62, 100],
            'bagel': [0, 0, 0, 0, 8]
        }, dates=['2021-01-01', '2021-01-02', '2021-01-03', '2021-01-04', '2021-01-05'])
>       assert_frame_equal(df_result, df_expected)

tests/test_request.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="pizza") are different
E   
E   DataFrame.iloc[:, 0] (column name="pizza") values are different (100.0 %)
E   [index]: [2021-01-01T00:00:00.000000000, 2021-01-02T00:00:00.000000000, 2021-01-03T00:00:00.000000000, 2021-01-04T00:00:00.000000000, 2021-01-05T00:00:00.000000000]
E   [left]:  [95, 100, 93, 67, 80]
E   [right]: [94, 99, 94, 62, 100]
E   At positional index 0, first diff: 95 != 94

pandas/_libs/testing.pyx:172: AssertionError
________________________________________________________________________________ test_interest_by_region_ok _________________________________________________________________________________

    @pytest.mark.vcr
    def test_interest_by_region_ok():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza', 'bagel'], timeframe='2021-01-01 2021-12-31')
        df_result = pytrend.interest_by_region()
        # Both head and tail have all 0's in both values, sort the result to test more meaningful values
        df_result = df_result.sort_values(by=['bagel', 'pizza', 'geoName'], ascending=False)
        expected_result = ExpectedResult(
            length=250,
            df_head=pd.DataFrame({
                'pizza': [92, 94, 96],
                'bagel': [8, 6, 4],
            }, index=pd.Index(['Singapore', 'Hong Kong', 'Taiwan'], name='geoName')),
            df_tail=pd.DataFrame({
                'pizza': [0, 0, 0],
                'bagel': [0, 0, 0],
            }, index=pd.Index(['Algeria', 'Albania', 'Afghanistan'], name='geoName'))
        )
>       expected_result.assert_equals(df_result)

tests/test_request.py:320: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_request.py:29: in assert_equals
    assert_frame_equal(df_result.head(self.head_tail_length), self.df_head)
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="pizza") are different
E   
E   DataFrame.iloc[:, 0] (column name="pizza") values are different (33.33333 %)
E   [index]: [Singapore, Hong Kong, Taiwan]
E   [left]:  [92, 95, 96]
E   [right]: [92, 94, 96]
E   At positional index 1, first diff: 95 != 94

pandas/_libs/testing.pyx:172: AssertionError
____________________________________________________________________________________ test_suggestions_ok ____________________________________________________________________________________

    @pytest.mark.vcr
    def test_suggestions_ok():
        pytrend = TrendReq()
        # suggestions doesn't need to call build_payload.
        result = pytrend.suggestions(keyword='pizza')
        expected = [
            {'mid': '/m/0663v', 'title': 'Pizza', 'type': 'Dish'},
            {'mid': '/g/11k19hmrkk', 'title': 'Licorice Pizza', 'type': '2021 film'},
            {'mid': '/m/0rg8s1t', 'title': 'Dominos Pizza', 'type': 'Topic'},
            {'mid': '/m/0dfxdnc', 'title': 'Pizza dough', 'type': 'Food'},
            {'mid': '/g/11hdxfw7c0', 'title': 'history of pizza', 'type': 'Food'},
        ]
>       assert result == expected
E       AssertionError: assert [{'mid': '/m/...ype': 'Food'}] == [{'mid': '/m/...ype': 'Food'}]
E         At index 1 diff: {'mid': '/m/0dfxdnc', 'title': 'Pizza dough', 'type': 'Food'} != {'mid': '/g/11k19hmrkk', 'title': 'Licorice Pizza', 'type': '2021 film'}
E         Full diff:
E           [
E            {'mid': '/m/0663v', 'title': 'Pizza', 'type': 'Dish'},
E         +  {'mid': '/m/0dfxdnc', 'title': 'Pizza dough', 'type': 'Food'},
E            {'mid': '/g/11k19hmrkk', 'title': 'Licorice Pizza', 'type': '2021 film'},
E         -  {'mid': '/m/0rg8s1t', 'title': 'Dominos Pizza', 'type': 'Topic'},...
E         
E         ...Full output truncated (9 lines hidden), use '-vv' to show

tests/test_request.py:598: AssertionError
____________________________________________________________________________ test_realtime_trending_searches_ok _____________________________________________________________________________

    @pytest.mark.vcr
    def test_realtime_trending_searches_ok():
        pytrend = TrendReq()
        # realtime_trending_searches doesn't need to call build_payload.
        df_result = pytrend.realtime_trending_searches()
        # NOTE: This expected result needs to be rebuilt from scratch every time the cassette is rewritten.
        # They're time-dependent.
        # NOTE: The result returned by this function is a monster.
        # Strings of almost 200 characters, lists of strings, lists of lists of strings...
        # Rebuilding a full 3-head-tail result from scratch is a chore, with a single record for head
        # and tail is more than enough.
        expected_result = ExpectedResult(
            length=111,
            head_tail_length=1,
            df_head=pd.DataFrame({
                'title': [
                    ('Caleb Plant, '
                     'Boxing, Canelo Álvarez, '
                     'David Benavidez, '
                     'Anthony Dirrell')
                ],
                'entityNames': [
                    [
                        'Caleb Plant',
                        'Boxing',
                        'Canelo Álvarez',
                        'David Benavidez',
                        'Anthony Dirrell',
                    ]
                ]
            }),
            df_tail=pd.DataFrame({
                'title': [
                    ('Ron DeSantis, '
                     'Casey DeSantis, '
                     'Republican Party, '
                     'Christina DeSantis')
                ],
                'entityNames': [
                    [
                        'Ron DeSantis',
                        'Casey DeSantis',
                        'Republican Party',
                        'Christina DeSantis',
                    ]
                ]
            }, index=pd.Index([110]))
        )
>       expected_result.assert_equals(df_result)

tests/test_request.py:560: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = ExpectedResult(length=111, df_head=                                               title                               ...n DeSantis, Casey DeSantis, Republican Party...  [Ron DeSantis, Casey DeSantis, Republican Part..., head_tail_length=1)
df_result =                                                 title                                        entityNames
0   Oregon Du...rterback, U...
10  Northrop Grumman B-2 Spirit, Flypast, Bomber, ...  [Northrop Grumman B-2 Spirit, Flypast, Bomber,...

    def assert_equals(self, df_result: pd.DataFrame):
>       assert len(df_result) == self.length
E       assert 11 == 111
E        +  where 11 = len(                                                title                                        entityNames\n0   Oregon Ducks football, The Fiesta Bowl, Bowl g...  [Oregon Ducks football, The Fiesta Bowl, Bowl ...\n1   LSU Tigers football, Texas A&M Aggies football...  [LSU Tigers football, Texas A&M Aggies footbal...\n2   Wisconsin Badgers football, Linebacker, Americ...  [Wisconsin Badgers football, Linebacker, Ameri...\n3   College Football Playoff, College GameDay, Ame...  [College Football Playoff, College GameDay, Am...\n4   Earthquake, California, Rancho Palos Verdes, L...  [Earthquake, California, Rancho Palos Verdes, ...\n5   Iowa Hawkeyes football, The University of Iowa...  [Iowa Hawkeyes football, The University of Iow...\n6   San Diego Zoo, Rose Parade floats, Parade, Pas...  [San Diego Zoo, Rose Parade floats, Parade, Pa...\n7   Rose Parade, South Pasadena Tournament of Rose...  [Rose Parade, South Pasadena Tournament of Ros...\n8   Rose Parade, Bagpipes, Parade, Pipe band, Sant...  [Rose Parade, Bagpipes, Parade, Pipe band, San...\n9   Tennessee Volunteers football, Quarterback, Un...  [Tennessee Volunteers football, Quarterback, U...\n10  Northrop Grumman B-2 Spirit, Flypast, Bomber, ...  [Northrop Grumman B-2 Spirit, Flypast, Bomber,...)
E        +  and   111 = ExpectedResult(length=111, df_head=                                               title                                        entityNames\n0  Caleb Plant, Boxing, Canelo Álvarez, David Ben...  [Caleb Plant, Boxing, Canelo Álvarez, David Be..., df_tail=                                                 title                                        entityNames\n110  Ron DeSantis, Casey DeSantis, Republican Party...  [Ron DeSantis, Casey DeSantis, Republican Part..., head_tail_length=1).length

tests/test_request.py:28: AssertionError
________________________________________________________________________________________ test_tokens ________________________________________________________________________________________

    @pytest.mark.vcr
    def test_tokens():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=["pizza", "bagel"], timeframe='2021-01-01 2021-12-31')
        expected = [
            {
                "request": {
                    "restriction": {
                        "geo": {},
                        "time": "2021-01-01 2021-12-31",
                        "originalTimeRangeForExploreUrl": "2021-01-01 2021-12-31",
                        "complexKeywordsRestriction": {
                            "keyword": [{"type": "BROAD", "value": "pizza"}]
                        },
                    },
                    "keywordType": "QUERY",
                    "metric": ["TOP", "RISING"],
                    "trendinessSettings": {"compareTime": "2020-01-02 2020-12-31"},
                    "requestOptions": {"property": "", "backend": "IZG", "category": 0},
                    "language": "en",
                    "userCountryCode": "ES",
                    "userConfig": {"userType": "USER_TYPE_SCRAPER"},
                },
                # We don't care if the help dialog changes.
                "helpDialog": ANY,
                "color": "PALETTE_COLOR_1",
                "keywordName": "pizza",
                # The token will change in every request.
                "token": ANY,
                "id": "RELATED_QUERIES_0",
                "type": "fe_related_searches",
                "title": "Related queries",
                "template": "fe",
                "embedTemplate": "fe_embed",
                "version": "1",
                "isLong": False,
                "isCurated": False,
            },
            {
                "request": {
                    "restriction": {
                        "geo": {},
                        "time": "2021-01-01 2021-12-31",
                        "originalTimeRangeForExploreUrl": "2021-01-01 2021-12-31",
                        "complexKeywordsRestriction": {
                            "keyword": [{"type": "BROAD", "value": "bagel"}]
                        },
                    },
                    "keywordType": "QUERY",
                    "metric": ["TOP", "RISING"],
                    "trendinessSettings": {"compareTime": "2020-01-02 2020-12-31"},
                    "requestOptions": {"property": "", "backend": "IZG", "category": 0},
                    "language": "en",
                    "userCountryCode": "ES",
                    "userConfig": {"userType": "USER_TYPE_SCRAPER"},
                },
                # We don't care if the help dialog changes.
                "helpDialog": ANY,
                "color": "PALETTE_COLOR_2",
                "keywordName": "bagel",
                # The token will change in every request.
                "token": ANY,
                "id": "RELATED_QUERIES_1",
                "type": "fe_related_searches",
                "title": "Related queries",
                "template": "fe",
                "embedTemplate": "fe_embed",
                "version": "1",
                "isLong": False,
                "isCurated": False,
            },
        ]
>       assert pytrend.related_queries_widget_list == expected
E       AssertionError: assert [{'color': 'P...RIES_1', ...}] == [{'color': 'P...RIES_1', ...}]
E         At index 0 diff: {'request': {'restriction': {'geo': {}, 'time': '2021-01-01 2021-12-31', 'originalTimeRangeForExploreUrl': '2021-01-01 2021-12-31', 'complexKeywordsRestriction': {'keyword': [{'type': 'BROAD', 'value': 'pizza'}]}}, 'keywordType': 'QUERY', 'metric': ['TOP', 'RISING'], 'trendinessSettings': {'compareTime': '2020-01-02 2020-12-31'}, 'requestOptions': {'property': '', 'backend': 'IZG', 'category': 0}, 'language': 'en', 'userCountryCode': 'US', 'userConfig': {'userType': 'USER_TYPE_SCRAPER'}}, 'helpDialog': {'title': 'Related queries', 'content': 'Users sear...
E         
E         ...Full output truncated (96 lines hidden), use '-vv' to show

tests/test_request.py:167: AssertionError
________________________________________________________________________________ test_interest_over_time_ok _________________________________________________________________________________

    @pytest.mark.vcr
    def test_interest_over_time_ok():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza', 'bagel'], timeframe='2021-01-01 2021-01-05')
        df_result = pytrend.interest_over_time()
        df_expected = build_interest_over_time_df({
            'pizza': [100, 83, 78, 49, 50],
            'bagel': [2, 2, 2, 1, 1]
        }, dates=['2021-01-01', '2021-01-02', '2021-01-03', '2021-01-04', '2021-01-05'])
>       assert_frame_equal(df_result, df_expected)

tests/test_request.py:179: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="pizza") are different
E   
E   DataFrame.iloc[:, 0] (column name="pizza") values are different (60.0 %)
E   [index]: [2021-01-01T00:00:00.000000000, 2021-01-02T00:00:00.000000000, 2021-01-03T00:00:00.000000000, 2021-01-04T00:00:00.000000000, 2021-01-05T00:00:00.000000000]
E   [left]:  [100, 81, 79, 49, 52]
E   [right]: [100, 83, 78, 49, 50]
E   At positional index 1, first diff: 81 != 83

pandas/_libs/testing.pyx:172: AssertionError
__________________________________________________________________________ test_interest_by_region_city_resolution __________________________________________________________________________

    @pytest.mark.vcr
    def test_interest_by_region_city_resolution():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza', 'bagel'], timeframe='2021-01-01 2021-12-31')
        df_result = pytrend.interest_by_region(resolution='CITY')
        # Both head and tail have all 0's in both values, sort the result to test more meaningful values
        df_result = df_result.sort_values(by=['bagel', 'pizza', 'geoName'], ascending=False)
        expected_result = ExpectedResult(
            length=200,
            df_head=pd.DataFrame({
                'pizza': [97, 97, 98],
                'bagel': [3, 3, 2],
            }, index=pd.Index(['Charlotte', 'Altamonte Springs', 'Portland'], name='geoName')),
            df_tail=pd.DataFrame({
                'pizza': [0, 0, 0],
                'bagel': [0, 0, 0],
            }, index=pd.Index(['Albany', 'Aix-en-Provence', 'Aalborg'], name='geoName'))
        )
>       expected_result.assert_equals(df_result)

tests/test_request.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_request.py:29: in assert_equals
    assert_frame_equal(df_result.head(self.head_tail_length), self.df_head)
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.index are different
E   
E   DataFrame.index values are different (100.0 %)
E   [left]:  Index(['Worcester', 'London', 'Birmingham'], dtype='object', name='geoName')
E   [right]: Index(['Charlotte', 'Altamonte Springs', 'Portland'], dtype='object', name='geoName')
E   At positional index 0, first diff: Worcester != Charlotte

pandas/_libs/testing.pyx:172: AssertionError
______________________________________________________________________________ test_related_queries_result_top ______________________________________________________________________________

    @pytest.mark.vcr
    def test_related_queries_result_top():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza', 'bagel'], timeframe='2021-01-01 2021-12-31')
        df_result = pytrend.related_queries()

        expected_pizza = ExpectedResult(
            length=25,
            df_head=pd.DataFrame({
                'query': ['pizza hut', 'pizza near me', 'pizza pizza near me'],
                'value': [100, 68, 65],
            }),
            df_tail=pd.DataFrame({
                'query': ['pizza little caesars', 'cheese pizza', 'new york pizza'],
                'value': [5, 5, 5],
            }, index=pd.Index([22, 23, 24]))
        )
>       expected_pizza.assert_equals(df_result['pizza']['top'])

tests/test_request.py:445: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_request.py:29: in assert_equals
    assert_frame_equal(df_result.head(self.head_tail_length), self.df_head)
pandas/_libs/testing.pyx:52: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="query") are different
E   
E   DataFrame.iloc[:, 0] (column name="query") values are different (33.33333 %)
E   [index]: [0, 1, 2]
E   [left]:  [pizza hut, pizza near me, pizza dominos]
E   [right]: [pizza hut, pizza near me, pizza pizza near me]
E   At positional index 2, first diff: pizza dominos != pizza pizza near me

pandas/_libs/testing.pyx:172: AssertionError
_____________________________________________________________________________ test_related_topics_result_rising _____________________________________________________________________________

    @pytest.mark.vcr
    def test_related_topics_result_rising():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza'], timeframe='2021-01-01 2021-12-31')
        df_result = pytrend.related_topics()['pizza']['rising']
        df_expected = pd.DataFrame({
            'value': [12600, 160, 80, 70],
            'formattedValue': ['Breakout', '+160%', '+80%', '+70%'],
            'link': [
                '/trends/explore?q=/m/09nghg&date=2021-01-01+2021-12-31',
                '/trends/explore?q=/m/0gwh_4&date=2021-01-01+2021-12-31',
                '/trends/explore?q=/g/11g6qhxwmd&date=2021-01-01+2021-12-31',
                '/trends/explore?q=/m/02hvyj&date=2021-01-01+2021-12-31',
            ],
            'topic_mid': ['/m/09nghg', '/m/0gwh_4', '/g/11g6qhxwmd', '/m/02hvyj'],
            'topic_title': ['Sam Goody', 'Detroit-style pizza', 'Ooni', 'Mystic Pizza'],
            'topic_type': ['Retail company', 'Food', 'Topic', '1988 film'],
        })
>       assert_frame_equal(df_result, df_expected)
E       AssertionError: DataFrame are different
E       
E       DataFrame shape mismatch
E       [left]:  (11, 6)
E       [right]: (4, 6)

tests/test_request.py:413: AssertionError
____________________________________________________________________________ test_related_queries_result_rising _____________________________________________________________________________

    @pytest.mark.vcr
    def test_related_queries_result_rising():
        pytrend = TrendReq()
        pytrend.build_payload(kw_list=['pizza', 'bagel'], timeframe='2021-01-01 2021-12-31')
        df_result = pytrend.related_queries()

        expected_pizza = ExpectedResult(
            length=11,
            df_head=pd.DataFrame({
                'query': ['licorice pizza', 'history of pizza', 'stoned pizza'],
                'value': [8550, 400, 300],
            }),
            df_tail=pd.DataFrame({
                'query': ['incredible pizza', 'mountain mike pizza', 'angels pizza'],
                'value': [60, 50, 40],
            }, index=pd.Index([8, 9, 10]))
        )
>       expected_pizza.assert_equals(df_result['pizza']['rising'])

tests/test_request.py:478: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = ExpectedResult(length=11, df_head=              query  value
0    licorice pizza   8550
1  history of pizza    400
2  ...value
8      incredible pizza     60
9   mountain mike pizza     50
10         angels pizza     40, head_tail_length=3)
df_result =               query  value
0    licorice pizza   8650
1  history of pizza    400
2   ooni pizza oven     80
3      mystic pizza     60

    def assert_equals(self, df_result: pd.DataFrame):
>       assert len(df_result) == self.length
E       assert 4 == 11
E        +  where 4 = len(              query  value\n0    licorice pizza   8650\n1  history of pizza    400\n2   ooni pizza oven     80\n3      mystic pizza     60)
E        +  and   11 = ExpectedResult(length=11, df_head=              query  value\n0    licorice pizza   8550\n1  history of pizza    400\n2      stoned pizza    300, df_tail=                  query  value\n8      incredible pizza     60\n9   mountain mike pizza     50\n10         angels pizza     40, head_tail_length=3).length

tests/test_request.py:28: AssertionError
===================================================================================== warnings summary ======================================================================================
tests/test_request.py:63
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:63: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:77
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:77: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:95
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:95: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:170
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:170: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:182
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:182: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:198
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:198: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:214
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:214: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:230
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:230: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:246
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:246: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:254
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:254: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:278
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:278: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:302
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:302: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:323
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:323: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:346
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:346: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:358
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:358: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:395
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:395: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:416
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:416: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:428
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:428: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:461
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:461: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:494
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:494: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:512
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:512: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:563
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:563: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:586
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:586: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

tests/test_request.py:601
  /usr/ports/finance/py-pytrends/work-py39/pytrends-4.9.2/tests/test_request.py:601: PytestUnknownMarkWarning: Unknown pytest.mark.vcr - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.vcr

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================== 17 failed, 8 passed, 24 warnings in 29.19s =========================================================================

Version: 4.9.2 Python-3.9 FreeBSD 14.0