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

add test analytics #697

Closed
wants to merge 6 commits into from
Closed

add test analytics #697

wants to merge 6 commits into from

Conversation

sigma67
Copy link
Owner

@sigma67 sigma67 commented Dec 19, 2024

No description provided.

Copy link

codecov bot commented Dec 19, 2024

❌ 3 Tests Failed:

Tests completed Failed Passed Skipped
106 3 103 2
View the top 3 failed tests by shortest run time
tests.mixins.test_podcasts.TestPodcasts::test_get_channel_episodes
Stack Traces | 0.003s run time
self = <tests.mixins.test_podcasts.TestPodcasts object at 0x7f609dbfa2d0>
config = <configparser.RawConfigParser object at 0x7f609dad05f0>
yt_oauth = <ytmusicapi.ytmusic.YTMusic object at 0x7f609dad36e0>

    def test_get_channel_episodes(self, config, yt_oauth):
>       channel_id = config["podcasts"]["channl_id"]

tests/mixins/test_podcasts.py:9: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Section: podcasts>, key = 'channl_id'

    def __getitem__(self, key):
        if not self._parser.has_option(self._name, key):
>           raise KeyError(key)
E           KeyError: 'channl_id'

.../hostedtoolcache/Python/3.12.8.../x64/lib/python3.12/configparser.py:1224: KeyError
tests.mixins.test_podcasts.TestPodcasts::test_get_channel
Stack Traces | 0.398s run time
self = <tests.mixins.test_podcasts.TestPodcasts object at 0x7f609dbfe600>
config = <configparser.RawConfigParser object at 0x7f609d8d8b90>
yt = <ytmusicapi.ytmusic.YTMusic object at 0x7f609d8d9e50>

    def test_get_channel(self, config, yt):
        podcast_id = config["podcasts"]["channel_id"]
        channel = yt.get_channel(podcast_id)
>       assert len(channel["episodes"]["results"]) != 10
E       AssertionError: assert 10 != 10
E        +  where 10 = len([{'browseId': 'MPEDejQzOdR5wHU', 'date': '21 hours ago', 'description': 'During the 2024 U.S. presidential election, inflation was one of the most talked about issues, and there was one policy idea to get inflation under control that kept coming up: price caps. But history has shown time and time again that price caps do anything but reduce inflation. So why do policymakers still want to try it?\n\nIn this episode, hosts and finance professors Jonathan Berk and Jules van Binsbergen speak with guest Veronica Rappoport, associate professor at London School of Economics and former 2nd Deputy Governor of the Central Bank of Argentina. Veronica served as the deputy governor during a key period of high inflation for Argentina. \n\nShe chats with Jonathan and Jules about the circumstances that can lead to inflation rates as high as the ones Argentina has seen in the last 50 years, how band-aids like price caps can in fact make inflation significantly worse in the long run, and what lessons countries like the U.S. can take from Argentina’s case.  \n\n\nSubmit your questions to the show here: https://bit.ly/AllElseEqual\nFind All Else Equal on the web: https://lauder.wharton.upenn.edu/all...t to the labor commission. And then once they call you in, that’s not pleasant.”\n\nCEOs Shouldn’t Offload Everything to HR\n\n“Visibility of leaders is extremely important in a time like this. The last thing you want is HR feeling already overburdened and probably handling all the pressure that comes from the team. But when you have a CEO who would go around, you know, walk the floor, talk to people, and where there’s anything that he can do, you know, he does it and he makes it very visible.”\n\nCommunicate Your Vision for AFTER the Downsizing\n\n“If you focus on the reason why you’re downsizing and you don’t focus on what you are evolving to do differently, you will have people who see the doom and gloom and there’s really nothing that inspires them about the future. That’s dangerous. You lose more people that way.”\n\nListen to Esi Ansah’s advice on how to identify — and, more critically, avoid — the most common pitfalls of downsizing. Learn how clear policies and transparent communication can help minimize messy post-layoff negotiations and allow leaders to focus on supporting laid-off employees through the transition, as well as those who stay.', 'duration': None, ...}, ...])

tests/mixins/test_podcasts.py:5: AssertionError
tests.mixins.test_podcasts.TestPodcasts::test_get_podcast
Stack Traces | 0.71s run time
self = <tests.mixins.test_podcasts.TestPodcasts object at 0x7f609dbfa060>
config = <configparser.RawConfigParser object at 0x7f609dabcd10>
yt = <ytmusicapi.ytmusic.YTMusic object at 0x7f609dabd880>
yt_brand = <ytmusicapi.ytmusic.YTMusic object at 0x7f609cbf87a0>

    def test_get_podcast(self, config, yt, yt_brand):
        podcast_id = config["podcasts"]["podcast_id"]
        podcast = yt.get_podcast(podcast_id)
>       assert len(podcast["episodes"]) == 99
E       AssertionError: assert 100 == 99
E        +  where 100 = len([{'browseId': 'MPEDejQzOdR5wHU', 'date': '21 hours ago', 'description': 'During the 2024 U.S. presidential election, inflation was one of the most talked about issues, and there was one policy idea to get inflation under control that kept coming up: price caps. But history has shown time and time again that price caps do anything but reduce inflation. So why do policymakers still want to try it?\n\nIn this episode, hosts and finance professors Jonathan Berk and Jules van Binsbergen speak with guest Veronica Rappoport, associate professor at London School of Economics and former 2nd Deputy Governor of the Central Bank of Argentina. Veronica served as the deputy governor during a key period of high inflation for Argentina. \n\nShe chats with Jonathan and Jules about the circumstances that can lead to inflation rates as high as the ones Argentina has seen in the last 50 years, how band-aids like price caps can in fact make inflation significantly worse in the long run, and what lessons countries like the U.S. can take from Argentina’s case.  \n\n\nSubmit your questions to the show here: https://bit.ly/AllElseEqual\nFind All Else Equal on the web: https://lauder.wharton.upenn.edu/all... the labor commission. And then once they call you in, that’s not pleasant.”\n\nCEOs Shouldn’t Offload Everything to HR\n\n“Visibility of leaders is extremely important in a time like this. The last thing you want is HR feeling already overburdened and probably handling all the pressure that comes from the team. But when you have a CEO who would go around, you know, walk the floor, talk to people, and where there’s anything that he can do, you know, he does it and he makes it very visible.”\n\nCommunicate Your Vision for AFTER the Downsizing\n\n“If you focus on the reason why you’re downsizing and you don’t focus on what you are evolving to do differently, you will have people who see the doom and gloom and there’s really nothing that inspires them about the future. That’s dangerous. You lose more people that way.”\n\nListen to Esi Ansah’s advice on how to identify — and, more critically, avoid — the most common pitfalls of downsizing. Learn how clear policies and transparent communication can help minimize messy post-layoff negotiations and allow leaders to focus on supporting laid-off employees through the transition, as well as those who stay.', 'duration': '38 min', ...}, ...])

tests/mixins/test_podcasts.py:18: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@sigma67 sigma67 closed this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant