Closed Kii4ka closed 5 days ago
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
:information_source: You can also turn on project coverage checks and project coverage reporting on Pull Request comment
Thanks for integrating Codecov - We've got you covered :open_umbrella:
============================= test session starts ============================== platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /home/runner/work/Enigma/Enigma configfile: pyproject.toml plugins: asyncio-0.24.0, anyio-4.6.2.post1, cov-6.0.0 asyncio: mode=Mode.STRICT, default_loop_scope=None collected 82 items
tests/bot_test.py . [ 1%] tests/eda_test.py .......... [ 13%] tests/get_all_test.py ...... [ 20%] tests/scraping_test.py ........... [ 34%] tests/song_queue_cog_test.py ........................ [ 63%] tests/test_recommend.py ........ [ 73%] tests/utils_test.py .. [ 75%] tests/volume_test.py .................... [100%]
=============================== warnings summary =============================== ../../../../../opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/discord/player.py:29 /opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/discord/player.py:29: DeprecationWarning: 'audioop' is deprecated and slated for removal in Python 3.13 import audioop
tests/song_queue_cog_test.py::TestSongQueueCog::test_pause_success /home/runner/work/Enigma/Enigma/src/song_queue_cog.py:442: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited Coroutine created at (most recent call last) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/base_events.py", line 1978, in _run_once handle._run() File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, self._args) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/unittest/mock.py", line 1412, in patched return await func(newargs, newkeywargs) File "/home/runner/work/Enigma/Enigma/tests/song_queue_cog_test.py", line 197, in test_pause_success await self.cog.pause(mock_ctx) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/discord/ext/commands/core.py", line 588, in call return await self.callback(self.cog, context, *args, *kwargs) # type: ignore File "/home/runner/work/Enigma/Enigma/src/song_queue_cog.py", line 442, in pause BotState.pause(voice_client) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/unittest/mock.py", line 1139, in call return self._mock_call(args, kwargs) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/unittest/mock.py", line 1143, in _mock_call return self._execute_mock_call(*args, **kwargs) BotState.pause(voice_client) Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/song_queue_cog_test.py::TestSongQueueCog::test_unpause_success /home/runner/work/Enigma/Enigma/src/song_queue_cog.py:480: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited Coroutine created at (most recent call last) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/base_events.py", line 1978, in _run_once handle._run() File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, self._args) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/unittest/mock.py", line 1412, in patched return await func(newargs, newkeywargs) File "/home/runner/work/Enigma/Enigma/tests/song_queue_cog_test.py", line 243, in test_unpause_success await self.cog.unpause(mock_ctx) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/discord/ext/commands/core.py", line 588, in call return await self.callback(self.cog, context, *args, *kwargs) # type: ignore File "/home/runner/work/Enigma/Enigma/src/song_queue_cog.py", line 480, in unpause BotState.unpause(voice_client) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/unittest/mock.py", line 1139, in call return self._mock_call(args, kwargs) File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/unittest/mock.py", line 1143, in _mock_call return self._execute_mock_call(*args, **kwargs) BotState.unpause(voice_client) Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 82 passed, 3 warnings in 3.89s ========================
Added the following functionality:
Exploratory Data Analysis (EDA):
Added functions in eda.py to get top songs, top artists, and longest-charting songs.
Integrated these functions into the bot commands to provide users with insights based on the data.
Web Scraping:
Added web scraping functionality in scraper.py to scrape music charts. Implemented initial scraping and periodic updates using the schedule module.
Test Cases for new functionality:
General Improvements:
Ensured that all changes adhere to the project's coding standards and best practices. Verified that the project builds and runs successfully with the new changes.
Solves #3 #4 #5 #6