Coverage report: + 93% +
+ + ++ Files + Functions + Classes +
++ coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
+From c068db093953d7d9f794d3fd44191c597d4fe71c Mon Sep 17 00:00:00 2001 From: dev-shiki <71618208+dev-shiki@users.noreply.github.com> Date: Wed, 14 May 2025 09:20:11 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20AI-generated=20tests=20for=20?= =?UTF-8?q?modules=20with=20low=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COVERAGE_SUMMARY.md | 10 + coverage-reports/coverage-analysis.json | 16 + .../coverage-final/class_index.html | 164 ++++ coverage-reports/coverage-final/coverage.json | 1 + .../coverage_html_cb_6fb7b396.js | 733 ++++++++++++++ .../coverage-final/favicon_32_cb_58284776.png | Bin 0 -> 1730 bytes .../coverage-final/function_index.html | 194 ++++ coverage-reports/coverage-final/index.html | 129 +++ .../keybd_closed_cb_ce680311.png | Bin 0 -> 9003 bytes coverage-reports/coverage-final/status.json | 1 + .../coverage-final/style_cb_8e611ae1.css | 337 +++++++ .../z_a44f0ac069e85531___init___py.html | 108 ++ ...44f0ac069e85531_test_radio_browser_py.html | 922 ++++++++++++++++++ .../z_c8b1f7e3f131828c_models_py.html | 259 +++++ .../z_c8b1f7e3f131828c_radio_browser_py.html | 546 +++++++++++ coverage-reports/coverage-initial.json | 1 + .../coverage-post-generation.json | 1 + test-results/COVERAGE_SUMMARY.md | 10 + test-results/api_interaction_logs.json | 2 + test-results/coverage-analysis.json | 16 + test-results/coverage-final/class_index.html | 164 ++++ test-results/coverage-final/coverage.json | 1 + .../coverage_html_cb_6fb7b396.js | 733 ++++++++++++++ .../coverage-final/favicon_32_cb_58284776.png | Bin 0 -> 1730 bytes .../coverage-final/function_index.html | 194 ++++ test-results/coverage-final/index.html | 129 +++ .../keybd_closed_cb_ce680311.png | Bin 0 -> 9003 bytes test-results/coverage-final/status.json | 1 + .../coverage-final/style_cb_8e611ae1.css | 337 +++++++ .../z_a44f0ac069e85531___init___py.html | 108 ++ ...44f0ac069e85531_test_radio_browser_py.html | 922 ++++++++++++++++++ .../z_c8b1f7e3f131828c_models_py.html | 259 +++++ .../z_c8b1f7e3f131828c_radio_browser_py.html | 546 +++++++++++ test-results/coverage-initial.json | 1 + test-results/coverage-post-generation.json | 1 + ...periment_data_complete_20250514_092001.zip | Bin 0 -> 150950 bytes test-results/generation_metrics.txt | 5 + test-results/tests/test_radio_browser.py | 823 ++++++++++++++++ test-results/tests/test_radios.py | 26 + tests/test_radio_browser.py | 823 ++++++++++++++++ 40 files changed, 8523 insertions(+) create mode 100644 COVERAGE_SUMMARY.md create mode 100644 coverage-reports/coverage-analysis.json create mode 100644 coverage-reports/coverage-final/class_index.html create mode 100644 coverage-reports/coverage-final/coverage.json create mode 100644 coverage-reports/coverage-final/coverage_html_cb_6fb7b396.js create mode 100644 coverage-reports/coverage-final/favicon_32_cb_58284776.png create mode 100644 coverage-reports/coverage-final/function_index.html create mode 100644 coverage-reports/coverage-final/index.html create mode 100644 coverage-reports/coverage-final/keybd_closed_cb_ce680311.png create mode 100644 coverage-reports/coverage-final/status.json create mode 100644 coverage-reports/coverage-final/style_cb_8e611ae1.css create mode 100644 coverage-reports/coverage-final/z_a44f0ac069e85531___init___py.html create mode 100644 coverage-reports/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html create mode 100644 coverage-reports/coverage-final/z_c8b1f7e3f131828c_models_py.html create mode 100644 coverage-reports/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html create mode 100644 coverage-reports/coverage-initial.json create mode 100644 coverage-reports/coverage-post-generation.json create mode 100644 test-results/COVERAGE_SUMMARY.md create mode 100644 test-results/api_interaction_logs.json create mode 100644 test-results/coverage-analysis.json create mode 100644 test-results/coverage-final/class_index.html create mode 100644 test-results/coverage-final/coverage.json create mode 100644 test-results/coverage-final/coverage_html_cb_6fb7b396.js create mode 100644 test-results/coverage-final/favicon_32_cb_58284776.png create mode 100644 test-results/coverage-final/function_index.html create mode 100644 test-results/coverage-final/index.html create mode 100644 test-results/coverage-final/keybd_closed_cb_ce680311.png create mode 100644 test-results/coverage-final/status.json create mode 100644 test-results/coverage-final/style_cb_8e611ae1.css create mode 100644 test-results/coverage-final/z_a44f0ac069e85531___init___py.html create mode 100644 test-results/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html create mode 100644 test-results/coverage-final/z_c8b1f7e3f131828c_models_py.html create mode 100644 test-results/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html create mode 100644 test-results/coverage-initial.json create mode 100644 test-results/coverage-post-generation.json create mode 100644 test-results/experiment_data_complete_20250514_092001.zip create mode 100644 test-results/generation_metrics.txt create mode 100644 test-results/tests/test_radio_browser.py create mode 100644 test-results/tests/test_radios.py create mode 100644 tests/test_radio_browser.py diff --git a/COVERAGE_SUMMARY.md b/COVERAGE_SUMMARY.md new file mode 100644 index 00000000..3bf30e45 --- /dev/null +++ b/COVERAGE_SUMMARY.md @@ -0,0 +1,10 @@ +# Coverage Summary + +**Initial Coverage**: 61.5% +**Final Coverage**: 96.2% +**Improvement**: 34.7% + +## Coverage Improvements by File + +- `src/radios/models.py`: 85.2% → 86.4% +- `src/radios/radio_browser.py`: 35.2% → 97.2% diff --git a/coverage-reports/coverage-analysis.json b/coverage-reports/coverage-analysis.json new file mode 100644 index 00000000..1b36ea8e --- /dev/null +++ b/coverage-reports/coverage-analysis.json @@ -0,0 +1,16 @@ +{ + "improvements": [ + { + "file": "src/radios/models.py", + "from": 85.22727272727273, + "to": 86.36363636363636 + }, + { + "file": "src/radios/radio_browser.py", + "from": 35.172413793103445, + "to": 97.24137931034483 + } + ], + "still_low": [], + "failed_tests": [] +} \ No newline at end of file diff --git a/coverage-reports/coverage-final/class_index.html b/coverage-reports/coverage-final/class_index.html new file mode 100644 index 00000000..836f4e7a --- /dev/null +++ b/coverage-reports/coverage-final/class_index.html @@ -0,0 +1,164 @@ + + +
+ ++ coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
+| File | +class | +statements | +missing | +excluded | +branches | +partial | +coverage | +
|---|---|---|---|---|---|---|---|
| src/radios/models.py | +CommaSeparatedString | +2 | +1 | +0 | +0 | +0 | +50% | +
| src/radios/models.py | +Station | +3 | +3 | +0 | +2 | +0 | +0% | +
| src/radios/models.py | +Country | +1 | +1 | +0 | +0 | +0 | +0% | +
| src/radios/models.py | +Language | +3 | +3 | +0 | +2 | +0 | +0% | +
| src/radios/radio_browser.py | +RadioBrowser | +75 | +0 | +0 | +34 | +4 | +96% | +
| Total | ++ | 195 | +8 | +0 | +38 | +4 | +93% | +
+ No items found using the specified filter. +
+4 classes skipped due to complete coverage.
+3w)2IT*k10eZsd$(=pnmsHnEG#TL@Ea0V(Usa#jIy)UV<&N4mSI&9U7 ?c z=Vcl*bD8D6w-(lE%U0Z3zWR5=%1O39Vho}-rl!7oc5MK;B>0iXypN5R7S`_WX)P_* ztwCnN5&!`eI48}S)eH9OS&u6h?te~)IMUK`b+W_rH4H4C>#M6vz+t(y+4}PNkc@8& zEI}%))BhySs1;){aCV*yj%yp=n;sSyLqjrdy;))n)W2ZWnZnyCtRQcKK}Y}6h1T=u zhSo1~O}zef<)_xR6Y<9nP2`6LR7cLHgNrRa=7om5nrdtA?GO;;?`Joy) vjng!Grr%H1%FtPb|PIs^~b16Rk@)FPm)BFPc<73Uu z&GP~aXQZ&HGcYi+OpiA=Gcz-HIs7c->LOQLyFCA(fQgQY0YUMSjG+7gm|&`{83>p= zUaNm{1jI0NaSb?G<6sxa&ICzv`Q{K6Q!`!{LYZccJ}!RDs*ps oR zx3hBy_IEV*o)jp_4zVARw;9=VgB{|$?OaN0f;Cv#5SbUDgo}fpRlKQ5Tv~~POC2r@ Y059?-JLr>-3IG5A07*qoM6N<$g7d!_7ytkO literal 0 HcmV?d00001 diff --git a/coverage-reports/coverage-final/function_index.html b/coverage-reports/coverage-final/function_index.html new file mode 100644 index 00000000..decfaef2 --- /dev/null +++ b/coverage-reports/coverage-final/function_index.html @@ -0,0 +1,194 @@ + + + + + Coverage report + + + + + ++ +++Coverage report: + 93% +
+ + ++ Files + Functions + Classes +
++ coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
++ + + + diff --git a/coverage-reports/coverage-final/index.html b/coverage-reports/coverage-final/index.html new file mode 100644 index 00000000..f65906cc --- /dev/null +++ b/coverage-reports/coverage-final/index.html @@ -0,0 +1,129 @@ + + + + ++ +
++ + + +File +function +statements +missing +excluded +branches +partial +coverage ++ +src/radios/models.py +CommaSeparatedString.serialize +1 +1 +0 +0 +0 +0% ++ +src/radios/models.py +Station.country +3 +3 +0 +2 +0 +0% ++ +src/radios/models.py +Country.favicon +1 +1 +0 +0 +0 +0% ++ +src/radios/models.py +Language.favicon +3 +3 +0 +2 +0 +0% ++ +src/radios/radio_browser.py +RadioBrowser._request +29 +0 +0 +12 +1 +98% ++ +src/radios/radio_browser.py +RadioBrowser.countries +11 +0 +0 +8 +1 +95% ++ +src/radios/radio_browser.py +RadioBrowser.search +8 +0 +0 +4 +1 +92% ++ + + +src/radios/radio_browser.py +RadioBrowser.stations +8 +0 +0 +4 +1 +92% ++ + +Total ++ 195 +8 +0 +38 +4 +93% ++ No items found using the specified filter. +
+11 functions skipped due to complete coverage.
+Coverage report + + + + + ++ +++Coverage report: + 94% +
+ + ++ Files + Functions + Classes +
++ coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
++ + + + diff --git a/coverage-reports/coverage-final/keybd_closed_cb_ce680311.png b/coverage-reports/coverage-final/keybd_closed_cb_ce680311.png new file mode 100644 index 0000000000000000000000000000000000000000..9c5dc188f8fe076cf0ee3573f4d8d3fb6ea04f85 GIT binary patch literal 9003 zcmeHLc{tSF+aIY=A^R4_poB4tZAN2XC;O7M(inrW3}(h&Q4}dl*&-65$i9^&vW6_# zcM4g`Qix=GhkBl;=lwnJ@Ap2}^}hc-b6vBXb3XUyzR%~}_c`-Dw+!?&k8mFW008u8 zEj1&`Hyh=BjP@Yq^VDkvJph2|hOdb^*$CqWbR)Xj;hk|nvX2`Mi1WtV0RY}Z3kepU zJZB2kcVVI2DycL#13hyRYIv?L&+ +
++ + + +File +statements +missing +excluded +branches +partial +coverage ++ +src/radios/models.py +84 +8 +0 +4 +0 +86% ++ + + +src/radios/radio_browser.py +111 +0 +0 +34 +4 +97% ++ + +Total +240 +8 +0 +38 +4 +94% ++ No items found using the specified filter. +
+3 files skipped due to complete coverage.
+5<7eM(VPa=?2gSYU$cX`ADyspqDfb_7-MY!qwI))-&5xyDw6jy1eN= z49@HO+gHj8u6WPHKHr(>_3=9PdD$t<^)hXx< 9KpxBwXoQ8-S-=q$Uw$t>}T?^~f z%_i4us=0+mm6e^cdfBJ$#Smz55cGXYG9|N$NsLNn`Bbn9L&+>Q1eS3hdrP`>%2*4Q z9vu~6{YD}91gQlXcb+6x6~wG9TE=SZi0?heh-gf3%uVkb;*OHhAdHN@cvP}jzLfI% zq3>dP|JdO<$=VRXFjOd)NAX-n^1FH+$qx7@=Qk2Y_#13ymOe4(%!bp3*3Qho=x(o= zFCVt*$wp$fS65~Xiz1#P!=lgMA5U$}K`P$NKXA&>Mx*|Gz8XsVpq9faSVbs(4HsQf z{hjQ`qN#N)A~o@*AdQ1{g%X5K_6qB}exVQO-fOy(BAU49Myr{Sf+>DXWgYIDAV=f! zwilJ1v}mqSV~GBSdyQz@SDy`>6Q9v5prv?JMb_m~g(c}J<7#4 _FSAR&j_M*M>evV``OChVyt>jkc+-nc?$`@hx(| z>+R_$)Tl*SMc#Mr)f;nwh|M;Ans2+P?`?qXp>!qtR0b0e$C=?3vd?;C|A^S@>FI%z zJSCsFPCqMBTFjayU15ReiDHAd -P9 zV`WaHhVi(?R$r1hY1c>>p{RTg8m%rsn=$#45z%G0c>m?N>75x9`@1e3BKGs5aZA1V zT`@+1ahnZ2xs16nJR0$_0$%5-J|(z}K<@AvFArRWwPkR5OT;MaF4#a96il0{Mlr2e z;-Uv*9wE1H?NPFl6Jf QvlYHFvuX@y`D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rix+%@y578U=mP>i_4!ZNMv=-Km7fr1<8bRkq9xu zkz759Se&{ijzAXt)v24a2kBRz9wgje*M8j2wssIoQ2U;Lwb4ZD8vJgvC!;;y#ckhW z5B)3B7W+HS&4cK?kFmu IYq0 =pQ`>&KR I4<^^N}+F~PgwjLDci)nGC(grp2o3Wk)H zl$1pLVs45fk| Vz~TGmwpck03MGb;ZFm=qJr3eVu-_lpTNgRXY$(c7E(G?> zVEg@)$;hb^aTu~I(Zto&Sst_(EO3u g-CqKVjz5O54j6(x zj ?Bt^ zvKNMkQ?{q%0A-yiwY9&_K#?Emclyu4csbzqa*IL-hDw29k|uCTIjE$ZB&FJ< lGEY@$y^FQEzvHzK<|H=GU z*bi$}S2rI@B|DJyy$Ju-{a*loFzDd1I0DJ_--Z4w TQXa?;*l2620d|8UTB|87IyWr~5&&?NW$#S|NJ!+QbkdN~y6Q9^ z4l+ body { font-size: 16px; } + +a:active, a:focus { outline: 2px dashed #007acc; } + +p { font-size: .875em; line-height: 1.4em; } + +table { border-collapse: collapse; } + +td { vertical-align: top; } + +table tr.hidden { display: none !important; } + +p#no_rows { display: none; font-size: 1.15em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + +a.nav { text-decoration: none; color: inherit; } + +a.nav:hover { text-decoration: underline; color: inherit; } + +.hidden { display: none; } + +header { background: #f8f8f8; width: 100%; z-index: 2; border-bottom: 1px solid #ccc; } + +@media (prefers-color-scheme: dark) { header { background: black; } } + +@media (prefers-color-scheme: dark) { header { border-color: #333; } } + +header .content { padding: 1rem 3.5rem; } + +header h2 { margin-top: .5em; font-size: 1em; } + +header h2 a.button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; } + +@media (prefers-color-scheme: dark) { header h2 a.button { background: #333; } } + +@media (prefers-color-scheme: dark) { header h2 a.button { border-color: #444; } } + +header h2 a.button.current { border: 2px solid; background: #fff; border-color: #999; cursor: default; } + +@media (prefers-color-scheme: dark) { header h2 a.button.current { background: #1e1e1e; } } + +@media (prefers-color-scheme: dark) { header h2 a.button.current { border-color: #777; } } + +header p.text { margin: .5em 0 -.5em; color: #666; font-style: italic; } + +@media (prefers-color-scheme: dark) { header p.text { color: #aaa; } } + +header.sticky { position: fixed; left: 0; right: 0; height: 2.5em; } + +header.sticky .text { display: none; } + +header.sticky h1, header.sticky h2 { font-size: 1em; margin-top: 0; display: inline-block; } + +header.sticky .content { padding: 0.5rem 3.5rem; } + +header.sticky .content p { font-size: 1em; } + +header.sticky ~ #source { padding-top: 6.5em; } + +main { position: relative; z-index: 1; } + +footer { margin: 1rem 3.5rem; } + +footer .content { padding: 0; color: #666; font-style: italic; } + +@media (prefers-color-scheme: dark) { footer .content { color: #aaa; } } + +#index { margin: 1rem 0 0 3.5rem; } + +h1 { font-size: 1.25em; display: inline-block; } + +#filter_container { float: right; margin: 0 2em 0 0; line-height: 1.66em; } + +#filter_container #filter { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; } + +@media (prefers-color-scheme: dark) { #filter_container #filter { border-color: #444; } } + +@media (prefers-color-scheme: dark) { #filter_container #filter { background: #1e1e1e; } } + +@media (prefers-color-scheme: dark) { #filter_container #filter { color: #eee; } } + +#filter_container #filter:focus { border-color: #007acc; } + +#filter_container :disabled ~ label { color: #ccc; } + +@media (prefers-color-scheme: dark) { #filter_container :disabled ~ label { color: #444; } } + +#filter_container label { font-size: .875em; color: #666; } + +@media (prefers-color-scheme: dark) { #filter_container label { color: #aaa; } } + +header button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; } + +@media (prefers-color-scheme: dark) { header button { background: #333; } } + +@media (prefers-color-scheme: dark) { header button { border-color: #444; } } + +header button:active, header button:focus { outline: 2px dashed #007acc; } + +header button.run { background: #eeffee; } + +@media (prefers-color-scheme: dark) { header button.run { background: #373d29; } } + +header button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.run.show_run { background: #373d29; } } + +header button.mis { background: #ffeeee; } + +@media (prefers-color-scheme: dark) { header button.mis { background: #4b1818; } } + +header button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.mis.show_mis { background: #4b1818; } } + +header button.exc { background: #f7f7f7; } + +@media (prefers-color-scheme: dark) { header button.exc { background: #333; } } + +header button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.exc.show_exc { background: #333; } } + +header button.par { background: #ffffd5; } + +@media (prefers-color-scheme: dark) { header button.par { background: #650; } } + +header button.par.show_par { background: #ffa; border: 2px solid #bbbb00; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.par.show_par { background: #650; } } + +#help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; } + +#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; } + +#help_panel_wrapper { float: right; position: relative; } + +#keyboard_icon { margin: 5px; } + +#help_panel_state { display: none; } + +#help_panel { top: 25px; right: 0; padding: .75em; border: 1px solid #883; color: #333; } + +#help_panel .keyhelp p { margin-top: .75em; } + +#help_panel .legend { font-style: italic; margin-bottom: 1em; } + +.indexfile #help_panel { width: 25em; } + +.pyfile #help_panel { width: 18em; } + +#help_panel_state:checked ~ #help_panel { display: block; } + +kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; border-radius: 3px; } + +#source { padding: 1em 0 1em 3.5rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; } + +#source p { position: relative; white-space: pre; } + +#source p * { box-sizing: border-box; } + +#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; } + +@media (prefers-color-scheme: dark) { #source p .n { color: #777; } } + +#source p .n.highlight { background: #ffdd00; } + +#source p .n a { scroll-margin-top: 6em; text-decoration: none; color: #999; } + +@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } } + +#source p .n a:hover { text-decoration: underline; color: #999; } + +@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } } + +#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; } + +@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } } + +#source p .t:hover { background: #f2f2f2; } + +@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } } + +#source p .t:hover ~ .r .annotate.long { display: block; } + +#source p .t .com { color: #008000; font-style: italic; line-height: 1px; } + +@media (prefers-color-scheme: dark) { #source p .t .com { color: #6a9955; } } + +#source p .t .key { font-weight: bold; line-height: 1px; } + +#source p .t .str { color: #0451a5; } + +@media (prefers-color-scheme: dark) { #source p .t .str { color: #9cdcfe; } } + +#source p.mis .t { border-left: 0.2em solid #ff0000; } + +#source p.mis.show_mis .t { background: #fdd; } + +@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } } + +#source p.mis.show_mis .t:hover { background: #f2d2d2; } + +@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } } + +#source p.run .t { border-left: 0.2em solid #00dd00; } + +#source p.run.show_run .t { background: #dfd; } + +@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } } + +#source p.run.show_run .t:hover { background: #d2f2d2; } + +@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } } + +#source p.exc .t { border-left: 0.2em solid #808080; } + +#source p.exc.show_exc .t { background: #eee; } + +@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } } + +#source p.exc.show_exc .t:hover { background: #e2e2e2; } + +@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } } + +#source p.par .t { border-left: 0.2em solid #bbbb00; } + +#source p.par.show_par .t { background: #ffa; } + +@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } } + +#source p.par.show_par .t:hover { background: #f2f2a2; } + +@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } } + +#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + +#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; color: #666; padding-right: .5em; } + +@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } } + +#source p .annotate.short:hover ~ .long { display: block; } + +#source p .annotate.long { width: 30em; right: 2.5em; } + +#source p input { display: none; } + +#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; } + +#source p input ~ .r label.ctx::before { content: "▶ "; } + +#source p input ~ .r label.ctx:hover { background: #e8f4ff; color: #666; } + +@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { background: #0f3a42; } } + +@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { color: #aaa; } } + +#source p input:checked ~ .r label.ctx { background: #d0e8ff; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; } + +@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { background: #056; } } + +@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { color: #aaa; } } + +#source p input:checked ~ .r label.ctx::before { content: "▼ "; } + +#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; } + +#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; } + +@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } } + +#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; white-space: nowrap; background: #d0e8ff; border-radius: .25em; margin-right: 1.75em; text-align: right; } + +@media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } } + +#index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; } + +#index table.index { margin-left: -.5em; } + +#index td, #index th { text-align: right; padding: .25em .5em; border-bottom: 1px solid #eee; } + +@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } } + +#index td.name, #index th.name { text-align: left; width: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; min-width: 15em; } + +#index th { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-style: italic; color: #333; cursor: pointer; } + +@media (prefers-color-scheme: dark) { #index th { color: #ddd; } } + +#index th:hover { background: #eee; } + +@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } } + +#index th .arrows { color: #666; font-size: 85%; font-family: sans-serif; font-style: normal; pointer-events: none; } + +#index th[aria-sort="ascending"], #index th[aria-sort="descending"] { white-space: nowrap; background: #eee; padding-left: .5em; } + +@media (prefers-color-scheme: dark) { #index th[aria-sort="ascending"], #index th[aria-sort="descending"] { background: #333; } } + +#index th[aria-sort="ascending"] .arrows::after { content: " ▲"; } + +#index th[aria-sort="descending"] .arrows::after { content: " ▼"; } + +#index td.name { font-size: 1.15em; } + +#index td.name a { text-decoration: none; color: inherit; } + +#index td.name .no-noun { font-style: italic; } + +#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; } + +#index tr.region:hover { background: #eee; } + +@media (prefers-color-scheme: dark) { #index tr.region:hover { background: #333; } } + +#index tr.region:hover td.name { text-decoration: underline; color: inherit; } + +#scroll_marker { position: fixed; z-index: 3; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; } + +@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } } + +@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } } + +#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; } + +@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } } diff --git a/coverage-reports/coverage-final/z_a44f0ac069e85531___init___py.html b/coverage-reports/coverage-final/z_a44f0ac069e85531___init___py.html new file mode 100644 index 00000000..21efb1ef --- /dev/null +++ b/coverage-reports/coverage-final/z_a44f0ac069e85531___init___py.html @@ -0,0 +1,108 @@ + + + + + Coverage for tests/__init__.py: 50% + + + + + ++ ++++ Coverage for tests/__init__.py: + 50% +
+ ++ 4 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:18 +0000 +
+ ++ + + + diff --git a/coverage-reports/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html b/coverage-reports/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html new file mode 100644 index 00000000..a6def87e --- /dev/null +++ b/coverage-reports/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html @@ -0,0 +1,922 @@ + + + + +1"""Asynchronous Python client for the Radio Browser API."""
+ +3from pathlib import Path
+ + +6def load_fixture(filename: str) -> str:
+7 """Load a fixture."""
+8 path = Path(__package__) / "fixtures" / filename
+9 return path.read_text(encoding="utf-8")
+Coverage for tests/test_radio_browser.py: 99% + + + + + ++ ++++ Coverage for tests/test_radio_browser.py: + 99% +
+ ++ 292 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:18 +0000 +
+ ++ + + + diff --git a/coverage-reports/coverage-final/z_c8b1f7e3f131828c_models_py.html b/coverage-reports/coverage-final/z_c8b1f7e3f131828c_models_py.html new file mode 100644 index 00000000..513b2e8d --- /dev/null +++ b/coverage-reports/coverage-final/z_c8b1f7e3f131828c_models_py.html @@ -0,0 +1,259 @@ + + + + +1import asyncio
+2import socket
+3from unittest.mock import AsyncMock, MagicMock, patch
+ +5import aiohttp
+6import orjson
+7import pytest
+8from aiodns.error import DNSError
+9from awesomeversion import AwesomeVersion
+ +11from radios.const import FilterBy, Order
+12from radios.exceptions import (
+13 RadioBrowserConnectionError,
+14 RadioBrowserConnectionTimeoutError,
+15 RadioBrowserError,
+16)
+17from radios.models import Country, Language, Station, Stats, Tag
+18from radios.radio_browser import RadioBrowser
+ + +21@pytest.fixture
+22def radio_browser():
+23 """Return a RadioBrowser instance."""
+24 return RadioBrowser(user_agent="Test/1.0")
+ + +27@pytest.fixture
+28def mock_session():
+29 """Return a mocked aiohttp ClientSession."""
+30 session = AsyncMock()
+31 response = AsyncMock()
+32 response.status = 200
+33 response.headers = {"Content-Type": "application/json"}
+34 response.text = AsyncMock(return_value='{"test": "data"}')
+35 session.request.return_value = response
+36 return session
+ + +39@pytest.fixture
+40def mock_dns_resolver():
+41 """Return a mocked DNSResolver."""
+42 resolver = AsyncMock()
+43 result = [MagicMock(host="api.radio-browser.info")]
+44 resolver.query.return_value = result
+45 return resolver
+ + +48class TestRadioBrowser:
+49 """Tests for the RadioBrowser class."""
+ +51 @pytest.mark.asyncio
+52 async def test_request_dns_resolution(self, radio_browser, mock_session):
+53 """Test that _request resolves DNS when host is None."""
+54 radio_browser.session = mock_session
+55 radio_browser._host = None
+ +57 with patch("radios.radio_browser.DNSResolver") as mock_resolver_class:
+58 mock_resolver = AsyncMock()
+59 mock_result = [MagicMock(host="api.radio-browser.info")]
+60 mock_resolver.query.return_value = mock_result
+61 mock_resolver_class.return_value = mock_resolver
+ +63 await radio_browser._request("test")
+ +65 mock_resolver.query.assert_called_once_with(
+66 "_api._tcp.radio-browser.info", "SRV"
+67 )
+68 assert radio_browser._host == "api.radio-browser.info"
+ +70 @pytest.mark.asyncio
+71 async def test_request_creates_session_if_none(self, radio_browser):
+72 """Test that _request creates a session if none exists."""
+73 radio_browser._host = "api.radio-browser.info"
+74 radio_browser.session = None
+ +76 with patch("radios.radio_browser.aiohttp.ClientSession") as mock_session_class:
+77 mock_session = AsyncMock()
+78 mock_response = AsyncMock()
+79 mock_response.status = 200
+80 mock_response.headers = {"Content-Type": "application/json"}
+81 mock_response.text = AsyncMock(return_value='{"test": "data"}')
+82 mock_session.request.return_value = mock_response
+83 mock_session_class.return_value = mock_session
+ +85 await radio_browser._request("test")
+ +87 mock_session_class.assert_called_once()
+88 assert radio_browser.session is not None
+89 assert radio_browser._close_session is True
+ +91 @pytest.mark.asyncio
+92 async def test_request_timeout(self, radio_browser, mock_session):
+93 """Test that _request raises RadioBrowserConnectionTimeoutError on timeout."""
+94 radio_browser.session = mock_session
+95 radio_browser._host = "api.radio-browser.info"
+96 mock_session.request.side_effect = asyncio.TimeoutError()
+ +98 with pytest.raises(RadioBrowserConnectionTimeoutError):
+99 await radio_browser._request("test")
+ +101 assert radio_browser._host is None
+ +103 @pytest.mark.asyncio
+104 async def test_request_connection_error(self, radio_browser, mock_session):
+105 """Test that _request raises RadioBrowserConnectionError on connection error."""
+106 radio_browser.session = mock_session
+107 radio_browser._host = "api.radio-browser.info"
+108 mock_session.request.side_effect = aiohttp.ClientError()
+ +110 with pytest.raises(RadioBrowserConnectionError):
+111 await radio_browser._request("test")
+ +113 assert radio_browser._host is None
+ +115 @pytest.mark.asyncio
+116 async def test_request_socket_error(self, radio_browser, mock_session):
+117 """Test that _request raises RadioBrowserConnectionError on socket error."""
+118 radio_browser.session = mock_session
+119 radio_browser._host = "api.radio-browser.info"
+120 mock_session.request.side_effect = socket.gaierror()
+ +122 with pytest.raises(RadioBrowserConnectionError):
+123 await radio_browser._request("test")
+ +125 assert radio_browser._host is None
+ +127 @pytest.mark.asyncio
+128 async def test_request_invalid_content_type(self, radio_browser, mock_session):
+129 """Test that _request raises RadioBrowserError on invalid content type."""
+130 radio_browser.session = mock_session
+131 radio_browser._host = "api.radio-browser.info"
+132 mock_response = AsyncMock()
+133 mock_response.status = 200
+134 mock_response.headers = {"Content-Type": "text/plain"}
+135 mock_response.text = AsyncMock(return_value="Not JSON")
+136 mock_session.request.return_value = mock_response
+ +138 with pytest.raises(RadioBrowserError):
+139 await radio_browser._request("test")
+ +141 @pytest.mark.asyncio
+142 async def test_request_boolean_params(self, radio_browser, mock_session):
+143 """Test that _request converts boolean params to lowercase strings."""
+144 radio_browser.session = mock_session
+145 radio_browser._host = "api.radio-browser.info"
+ +147 await radio_browser._request("test", params={"bool_param": True})
+ +149 mock_session.request.assert_called_once()
+150 call_args = mock_session.request.call_args[1]
+151 assert call_args["params"]["bool_param"] == "true"
+ +153 @pytest.mark.asyncio
+154 async def test_stats(self, radio_browser):
+155 """Test the stats method."""
+156 stats_data = {
+157 "supported_version": 1,
+158 "software_version": "1.0.0",
+159 "status": "OK",
+160 "stations": 1000,
+161 "stations_broken": 10,
+162 "tags": 500,
+163 "clicks_last_hour": 100,
+164 "clicks_last_day": 1000,
+165 "languages": 50,
+166 "countries": 100,
+167 }
+168 stats_json = orjson.dumps(stats_data)
+ +170 with patch.object(
+171 radio_browser, "_request", AsyncMock(return_value=stats_json)
+172 ):
+173 result = await radio_browser.stats()
+ +175 radio_browser._request.assert_called_once_with("stats")
+176 assert isinstance(result, Stats)
+177 assert result.supported_version == 1
+178 assert result.software_version == AwesomeVersion("1.0.0")
+179 assert result.status == "OK"
+180 assert result.stations == 1000
+181 assert result.stations_broken == 10
+182 assert result.tags == 500
+183 assert result.clicks_last_hour == 100
+184 assert result.clicks_last_day == 1000
+185 assert result.languages == 50
+186 assert result.countries == 100
+ +188 @pytest.mark.asyncio
+189 async def test_station_click(self, radio_browser):
+190 """Test the station_click method."""
+191 with patch.object(radio_browser, "_request", AsyncMock()):
+192 await radio_browser.station_click(uuid="test-uuid")
+ +194 radio_browser._request.assert_called_once_with("url/test-uuid")
+ +196 @pytest.mark.asyncio
+197 async def test_countries(self, radio_browser):
+198 """Test the countries method."""
+199 countries_data = [
+200 {"name": "US", "stationcount": "100"},
+201 {"name": "GB", "stationcount": "50"},
+202 {"name": "XK", "stationcount": "10"}, # Kosovo special case
+203 ]
+204 countries_json = orjson.dumps(countries_data)
+ +206 with patch.object(
+207 radio_browser, "_request", AsyncMock(return_value=countries_json)
+208 ):
+209 result = await radio_browser.countries()
+ +211 radio_browser._request.assert_called_once_with(
+212 "countrycodes",
+213 params={
+214 "hidebroken": False,
+215 "limit": 100000,
+216 "offset": 0,
+217 "order": "name",
+218 "reverse": False,
+219 },
+220 )
+221 assert isinstance(result, list)
+222 assert len(result) == 3
+223 assert all(isinstance(country, Country) for country in result)
+ +225 # Check Kosovo special case
+226 kosovo = next(c for c in result if c.code == "XK")
+227 assert kosovo.name == "Kosovo"
+ +229 # Check country name resolution
+230 us = next(c for c in result if c.code == "US")
+231 assert us.name == "United States"
+ +233 @pytest.mark.asyncio
+234 async def test_countries_with_parameters(self, radio_browser):
+235 """Test the countries method with custom parameters."""
+236 countries_data = [{"name": "US", "stationcount": "100"}]
+237 countries_json = orjson.dumps(countries_data)
+ +239 with patch.object(
+240 radio_browser, "_request", AsyncMock(return_value=countries_json)
+241 ):
+242 result = await radio_browser.countries(
+243 hide_broken=True,
+244 limit=10,
+245 offset=5,
+246 order=Order.STATION_COUNT,
+247 reverse=True,
+248 )
+ +250 radio_browser._request.assert_called_once_with(
+251 "countrycodes",
+252 params={
+253 "hidebroken": True,
+254 "limit": 10,
+255 "offset": 5,
+256 "order": "stationcount",
+257 "reverse": True,
+258 },
+259 )
+260 assert len(result) == 1
+ +262 @pytest.mark.asyncio
+263 async def test_languages(self, radio_browser):
+264 """Test the languages method."""
+265 languages_data = [
+266 {"name": "english", "stationcount": "100", "iso_639": "en"},
+267 {"name": "spanish", "stationcount": "50", "iso_639": "es"},
+268 ]
+269 languages_json = orjson.dumps(languages_data)
+ +271 with patch.object(
+272 radio_browser, "_request", AsyncMock(return_value=languages_json)
+273 ):
+274 result = await radio_browser.languages()
+ +276 radio_browser._request.assert_called_once_with(
+277 "languages",
+278 params={
+279 "hidebroken": False,
+280 "limit": 100000,
+281 "offset": 0,
+282 "order": "name",
+283 "reverse": False,
+284 },
+285 )
+286 assert isinstance(result, list)
+287 assert len(result) == 2
+288 assert all(isinstance(language, Language) for language in result)
+ +290 # Check title case conversion
+291 english = next(l for l in result if l.code == "en")
+292 assert english.name == "English"
+ +294 @pytest.mark.asyncio
+295 async def test_languages_with_parameters(self, radio_browser):
+296 """Test the languages method with custom parameters."""
+297 languages_data = [{"name": "english", "stationcount": "100", "iso_639": "en"}]
+298 languages_json = orjson.dumps(languages_data)
+ +300 with patch.object(
+301 radio_browser, "_request", AsyncMock(return_value=languages_json)
+302 ):
+303 result = await radio_browser.languages(
+304 hide_broken=True,
+305 limit=10,
+306 offset=5,
+307 order=Order.STATION_COUNT,
+308 reverse=True,
+309 )
+ +311 radio_browser._request.assert_called_once_with(
+312 "languages",
+313 params={
+314 "hidebroken": True,
+315 "limit": 10,
+316 "offset": 5,
+317 "order": "stationcount",
+318 "reverse": True,
+319 },
+320 )
+321 assert len(result) == 1
+ +323 @pytest.mark.asyncio
+324 async def test_search(self, radio_browser):
+325 """Test the search method."""
+326 stations_data = [
+327 {
+328 "bitrate": 128,
+329 "changeuuid": "change-uuid",
+330 "clickcount": 100,
+331 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+332 "clicktrend": 1,
+333 "codec": "MP3",
+334 "countrycode": "US",
+335 "favicon": "https://example.com/favicon.ico",
+336 "geo_lat": 37.7749,
+337 "geo_long": -122.4194,
+338 "has_extended_info": True,
+339 "hls": False,
+340 "homepage": "https://example.com",
+341 "iso_3166_2": "US-CA",
+342 "language": "English",
+343 "languagecodes": "en",
+344 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+345 "lastcheckok": True,
+346 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+347 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+348 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+349 "name": "Test Station",
+350 "ssl_error": 0,
+351 "state": "California",
+352 "stationuuid": "station-uuid",
+353 "tags": "rock,pop",
+354 "url_resolved": "https://example.com/stream",
+355 "url": "https://example.com/stream",
+356 "votes": 50,
+357 }
+358 ]
+359 stations_json = orjson.dumps(stations_data)
+ +361 with patch.object(
+362 radio_browser, "_request", AsyncMock(return_value=stations_json)
+363 ):
+364 result = await radio_browser.search(name="Test")
+ +366 radio_browser._request.assert_called_once_with(
+367 "stations/search",
+368 params={
+369 "hidebroken": False,
+370 "limit": 100000,
+371 "offset": 0,
+372 "order": "name",
+373 "reverse": False,
+374 "name": "Test",
+375 "name_exact": False,
+376 "country": "",
+377 "country_exact": False,
+378 "state_exact": False,
+379 "language_exact": False,
+380 "tag_exact": False,
+381 "bitrate_min": 0,
+382 "bitrate_max": 1000000,
+383 },
+384 )
+385 assert isinstance(result, list)
+386 assert len(result) == 1
+387 assert all(isinstance(station, Station) for station in result)
+388 assert result[0].name == "Test Station"
+ +390 @pytest.mark.asyncio
+391 async def test_search_with_filter(self, radio_browser):
+392 """Test the search method with filter parameters."""
+393 stations_data = [
+394 {
+395 "bitrate": 128,
+396 "changeuuid": "change-uuid",
+397 "clickcount": 100,
+398 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+399 "clicktrend": 1,
+400 "codec": "MP3",
+401 "countrycode": "US",
+402 "favicon": "https://example.com/favicon.ico",
+403 "geo_lat": 37.7749,
+404 "geo_long": -122.4194,
+405 "has_extended_info": True,
+406 "hls": False,
+407 "homepage": "https://example.com",
+408 "iso_3166_2": "US-CA",
+409 "language": "English",
+410 "languagecodes": "en",
+411 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+412 "lastcheckok": True,
+413 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+414 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+415 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+416 "name": "Test Station",
+417 "ssl_error": 0,
+418 "state": "California",
+419 "stationuuid": "station-uuid",
+420 "tags": "rock,pop",
+421 "url_resolved": "https://example.com/stream",
+422 "url": "https://example.com/stream",
+423 "votes": 50,
+424 }
+425 ]
+426 stations_json = orjson.dumps(stations_data)
+ +428 with patch.object(
+429 radio_browser, "_request", AsyncMock(return_value=stations_json)
+430 ):
+431 result = await radio_browser.search(
+432 filter_by=FilterBy.COUNTRY,
+433 filter_term="US",
+434 hide_broken=True,
+435 limit=10,
+436 offset=5,
+437 order=Order.BITRATE,
+438 reverse=True,
+439 name_exact=True,
+440 country_exact=True,
+441 state_exact=True,
+442 language_exact=True,
+443 tag_exact=True,
+444 bitrate_min=128,
+445 bitrate_max=320,
+446 )
+ +448 radio_browser._request.assert_called_once_with(
+449 "stations/search/bycountry/US",
+450 params={
+451 "hidebroken": True,
+452 "limit": 10,
+453 "offset": 5,
+454 "order": "bitrate",
+455 "reverse": True,
+456 "name": None,
+457 "name_exact": True,
+458 "country": "",
+459 "country_exact": True,
+460 "state_exact": True,
+461 "language_exact": True,
+462 "tag_exact": True,
+463 "bitrate_min": 128,
+464 "bitrate_max": 320,
+465 },
+466 )
+467 assert len(result) == 1
+ +469 @pytest.mark.asyncio
+470 async def test_station(self, radio_browser):
+471 """Test the station method."""
+472 stations_data = [
+473 {
+474 "bitrate": 128,
+475 "changeuuid": "change-uuid",
+476 "clickcount": 100,
+477 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+478 "clicktrend": 1,
+479 "codec": "MP3",
+480 "countrycode": "US",
+481 "favicon": "https://example.com/favicon.ico",
+482 "geo_lat": 37.7749,
+483 "geo_long": -122.4194,
+484 "has_extended_info": True,
+485 "hls": False,
+486 "homepage": "https://example.com",
+487 "iso_3166_2": "US-CA",
+488 "language": "English",
+489 "languagecodes": "en",
+490 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+491 "lastcheckok": True,
+492 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+493 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+494 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+495 "name": "Test Station",
+496 "ssl_error": 0,
+497 "state": "California",
+498 "stationuuid": "station-uuid",
+499 "tags": "rock,pop",
+500 "url_resolved": "https://example.com/stream",
+501 "url": "https://example.com/stream",
+502 "votes": 50,
+503 }
+504 ]
+505 stations_json = orjson.dumps(stations_data)
+ +507 with patch.object(
+508 radio_browser, "_request", AsyncMock(return_value=stations_json)
+509 ):
+510 result = await radio_browser.station(uuid="station-uuid")
+ +512 assert isinstance(result, Station)
+513 assert result.uuid == "station-uuid"
+514 assert result.name == "Test Station"
+ +516 @pytest.mark.asyncio
+517 async def test_station_not_found(self, radio_browser):
+518 """Test the station method when station is not found."""
+519 with patch.object(radio_browser, "_request", AsyncMock(return_value="[]")):
+520 result = await radio_browser.station(uuid="non-existent-uuid")
+ +522 assert result is None
+ +524 @pytest.mark.asyncio
+525 async def test_stations(self, radio_browser):
+526 """Test the stations method."""
+527 stations_data = [
+528 {
+529 "bitrate": 128,
+530 "changeuuid": "change-uuid",
+531 "clickcount": 100,
+532 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+533 "clicktrend": 1,
+534 "codec": "MP3",
+535 "countrycode": "US",
+536 "favicon": "https://example.com/favicon.ico",
+537 "geo_lat": 37.7749,
+538 "geo_long": -122.4194,
+539 "has_extended_info": True,
+540 "hls": False,
+541 "homepage": "https://example.com",
+542 "iso_3166_2": "US-CA",
+543 "language": "English",
+544 "languagecodes": "en",
+545 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+546 "lastcheckok": True,
+547 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+548 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+549 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+550 "name": "Test Station",
+551 "ssl_error": 0,
+552 "state": "California",
+553 "stationuuid": "station-uuid",
+554 "tags": "rock,pop",
+555 "url_resolved": "https://example.com/stream",
+556 "url": "https://example.com/stream",
+557 "votes": 50,
+558 }
+559 ]
+560 stations_json = orjson.dumps(stations_data)
+ +562 with patch.object(
+563 radio_browser, "_request", AsyncMock(return_value=stations_json)
+564 ):
+565 result = await radio_browser.stations()
+ +567 radio_browser._request.assert_called_once_with(
+568 "stations",
+569 params={
+570 "hidebroken": False,
+571 "limit": 100000,
+572 "offset": 0,
+573 "order": "name",
+574 "reverse": False,
+575 },
+576 )
+577 assert isinstance(result, list)
+578 assert len(result) == 1
+579 assert all(isinstance(station, Station) for station in result)
+580 assert result[0].name == "Test Station"
+ +582 @pytest.mark.asyncio
+583 async def test_stations_with_filter(self, radio_browser):
+584 """Test the stations method with filter parameters."""
+585 stations_data = [
+586 {
+587 "bitrate": 128,
+588 "changeuuid": "change-uuid",
+589 "clickcount": 100,
+590 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+591 "clicktrend": 1,
+592 "codec": "MP3",
+593 "countrycode": "US",
+594 "favicon": "https://example.com/favicon.ico",
+595 "geo_lat": 37.7749,
+596 "geo_long": -122.4194,
+597 "has_extended_info": True,
+598 "hls": False,
+599 "homepage": "https://example.com",
+600 "iso_3166_2": "US-CA",
+601 "language": "English",
+602 "languagecodes": "en",
+603 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+604 "lastcheckok": True,
+605 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+606 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+607 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+608 "name": "Test Station",
+609 "ssl_error": 0,
+610 "state": "California",
+611 "stationuuid": "station-uuid",
+612 "tags": "rock,pop",
+613 "url_resolved": "https://example.com/stream",
+614 "url": "https://example.com/stream",
+615 "votes": 50,
+616 }
+617 ]
+618 stations_json = orjson.dumps(stations_data)
+ +620 with patch.object(
+621 radio_browser, "_request", AsyncMock(return_value=stations_json)
+622 ):
+623 result = await radio_browser.stations(
+624 filter_by=FilterBy.COUNTRY,
+625 filter_term="US",
+626 hide_broken=True,
+627 limit=10,
+628 offset=5,
+629 order=Order.BITRATE,
+630 reverse=True,
+631 )
+ +633 radio_browser._request.assert_called_once_with(
+634 "stations/bycountry/US",
+635 params={
+636 "hidebroken": True,
+637 "limit": 10,
+638 "offset": 5,
+639 "order": "bitrate",
+640 "reverse": True,
+641 },
+642 )
+643 assert len(result) == 1
+ +645 @pytest.mark.asyncio
+646 async def test_tags(self, radio_browser):
+647 """Test the tags method."""
+648 tags_data = [
+649 {"name": "rock", "stationcount": "100"},
+650 {"name": "pop", "stationcount": "50"},
+651 ]
+652 tags_json = orjson.dumps(tags_data)
+ +654 with patch.object(radio_browser, "_request", AsyncMock(return_value=tags_json)):
+655 result = await radio_browser.tags()
+ +657 radio_browser._request.assert_called_once_with(
+658 "tags",
+659 params={
+660 "hidebroken": False,
+661 "limit": 100000,
+662 "offset": 0,
+663 "order": "name",
+664 "reverse": False,
+665 },
+666 )
+667 assert isinstance(result, list)
+668 assert len(result) == 2
+669 assert all(isinstance(tag, Tag) for tag in result)
+670 assert result[0].name == "rock"
+671 assert result[0].station_count == "100"
+672 assert result[1].name == "pop"
+673 assert result[1].station_count == "50"
+ +675 @pytest.mark.asyncio
+676 async def test_tags_with_parameters(self, radio_browser):
+677 """Test the tags method with custom parameters."""
+678 tags_data = [{"name": "rock", "stationcount": "100"}]
+679 tags_json = orjson.dumps(tags_data)
+ +681 with patch.object(radio_browser, "_request", AsyncMock(return_value=tags_json)):
+682 result = await radio_browser.tags(
+683 hide_broken=True,
+684 limit=10,
+685 offset=5,
+686 order=Order.STATION_COUNT,
+687 reverse=True,
+688 )
+ +690 radio_browser._request.assert_called_once_with(
+691 "tags",
+692 params={
+693 "hidebroken": True,
+694 "limit": 10,
+695 "offset": 5,
+696 "order": "stationcount",
+697 "reverse": True,
+698 },
+699 )
+700 assert len(result) == 1
+701 assert result[0].name == "rock"
+702 assert result[0].station_count == "100"
+ +704 @pytest.mark.asyncio
+705 async def test_close(self, radio_browser, mock_session):
+706 """Test the close method."""
+707 radio_browser.session = mock_session
+708 radio_browser._close_session = True
+ +710 await radio_browser.close()
+ +712 mock_session.close.assert_called_once()
+ +714 @pytest.mark.asyncio
+715 async def test_close_no_session(self, radio_browser):
+716 """Test the close method when no session exists."""
+717 radio_browser.session = None
+718 radio_browser._close_session = True
+ +720 await radio_browser.close() # Should not raise an exception
+ +722 @pytest.mark.asyncio
+723 async def test_close_not_owned(self, radio_browser, mock_session):
+724 """Test the close method when session is not owned."""
+725 radio_browser.session = mock_session
+726 radio_browser._close_session = False
+ +728 await radio_browser.close()
+ +730 mock_session.close.assert_not_called()
+ +732 @pytest.mark.asyncio
+733 async def test_aenter(self, radio_browser):
+734 """Test the __aenter__ method."""
+735 result = await radio_browser.__aenter__()
+736 assert result is radio_browser
+ +738 @pytest.mark.asyncio
+739 async def test_aexit(self, radio_browser):
+740 """Test the __aexit__ method."""
+741 with patch.object(radio_browser, "close", AsyncMock()) as mock_close:
+742 await radio_browser.__aexit__(None, None, None)
+743 mock_close.assert_called_once()
+ +745 @pytest.mark.asyncio
+746 async def test_context_manager(self, radio_browser):
+747 """Test using RadioBrowser as a context manager."""
+748 with patch.object(radio_browser, "close", AsyncMock()) as mock_close:
+749 async with radio_browser as rb:
+750 assert rb is radio_browser
+751 mock_close.assert_called_once()
+ +753 @pytest.mark.asyncio
+754 async def test_request_backoff_retry(self, radio_browser, mock_session):
+755 """Test that _request retries on connection error."""
+756 radio_browser.session = mock_session
+757 radio_browser._host = "api.radio-browser.info"
+ +759 # First call raises error, second succeeds
+760 mock_session.request.side_effect = [
+761 aiohttp.ClientError(),
+762 AsyncMock(
+763 status=200,
+764 headers={"Content-Type": "application/json"},
+765 text=AsyncMock(return_value='{"test": "data"}')
+766 )
+767 ]
+ +769 # Patch backoff to make tests faster
+770 with patch("radios.radio_browser.backoff.expo", return_value=[0.1]):
+771 result = await radio_browser._request("test")
+ +773 assert result == '{"test": "data"}'
+774 assert mock_session.request.call_count == 2
+ +776 @pytest.mark.asyncio
+777 async def test_search_with_all_parameters(self, radio_browser):
+778 """Test the search method with all parameters."""
+779 stations_data = []
+780 stations_json = orjson.dumps(stations_data)
+ +782 with patch.object(
+783 radio_browser, "_request", AsyncMock(return_value=stations_json)
+784 ):
+785 result = await radio_browser.search(
+786 filter_by=FilterBy.NAME,
+787 filter_term="Test",
+788 hide_broken=True,
+789 limit=10,
+790 offset=5,
+791 order=Order.BITRATE,
+792 reverse=True,
+793 name="Test",
+794 name_exact=True,
+795 country="US",
+796 country_exact=True,
+797 state_exact=True,
+798 language_exact=True,
+799 tag_exact=True,
+800 bitrate_min=128,
+801 bitrate_max=320,
+802 )
+ +804 radio_browser._request.assert_called_once_with(
+805 "stations/search/byname/Test",
+806 params={
+807 "hidebroken": True,
+808 "limit": 10,
+809 "offset": 5,
+810 "order": "bitrate",
+811 "reverse": True,
+812 "name": "Test",
+813 "name_exact": True,
+814 "country": "US",
+815 "country_exact": True,
+816 "state_exact": True,
+817 "language_exact": True,
+818 "tag_exact": True,
+819 "bitrate_min": 128,
+820 "bitrate_max": 320,
+821 },
+822 )
+823 assert result == [] # TODO: Fix this assertion - should be an empty list
+Coverage for src/radios/models.py: 86% + + + + + ++ ++++ Coverage for src/radios/models.py: + 86% +
+ ++ 84 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
+ ++ + + + diff --git a/coverage-reports/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html b/coverage-reports/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html new file mode 100644 index 00000000..346ddfe0 --- /dev/null +++ b/coverage-reports/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html @@ -0,0 +1,546 @@ + + + + +1"""Models for the Radio Browser API."""
+ +3# pylint: disable=too-few-public-methods
+4from __future__ import annotations
+ +6from dataclasses import dataclass, field
+7from datetime import datetime
+8from typing import cast
+ +10import pycountry
+11from awesomeversion import AwesomeVersion
+12from mashumaro import field_options
+13from mashumaro.mixins.orjson import DataClassORJSONMixin
+14from mashumaro.types import SerializationStrategy
+ + +17class CommaSeparatedString(SerializationStrategy):
+18 """String serialization strategy to handle comma separated strings."""
+ +20 def serialize(self, value: list[str]) -> str:
+21 """Serialize a list of strings to a comma separated value."""
+22 return ",".join(value)
+ +24 def deserialize(self, value: str) -> list[str]:
+25 """Deserialize a comma separated value to a list of strings."""
+26 return [item.strip() for item in value.split(",")]
+ + +29@dataclass
+30# pylint: disable=too-many-instance-attributes
+31class Stats(DataClassORJSONMixin):
+32 """Object holding the Radio Browser stats."""
+ +34 supported_version: int
+35 software_version: AwesomeVersion
+36 status: str
+37 stations: int
+38 stations_broken: int
+39 tags: int
+40 clicks_last_hour: int
+41 clicks_last_day: int
+42 languages: int
+43 countries: int
+ + +46@dataclass
+47# pylint: disable=too-many-instance-attributes
+48class Station(DataClassORJSONMixin):
+49 """Object information for a station from the Radio Browser."""
+ +51 bitrate: int
+52 change_uuid: str = field(metadata=field_options(alias="changeuuid"))
+53 click_count: int = field(metadata=field_options(alias="clickcount"))
+54 click_timestamp: datetime | None = field(
+55 metadata=field_options(alias="clicktimestamp_iso8601")
+56 )
+57 click_trend: int = field(metadata=field_options(alias="clicktrend"))
+58 codec: str
+59 country_code: str = field(metadata=field_options(alias="countrycode"))
+60 favicon: str
+61 latitude: float | None = field(metadata=field_options(alias="geo_lat"))
+62 longitude: float | None = field(metadata=field_options(alias="geo_long"))
+63 has_extended_info: bool
+64 hls: bool
+65 homepage: str
+66 iso_3166_2: str | None
+67 language: list[str] = field(
+68 metadata=field_options(serialization_strategy=CommaSeparatedString())
+69 )
+70 language_codes: list[str] = field(
+71 metadata=field_options(
+72 alias="languagecodes", serialization_strategy=CommaSeparatedString()
+73 )
+74 )
+75 lastchange_time: datetime | None = field(
+76 metadata=field_options(alias="lastchangetime_iso8601")
+77 )
+78 lastcheckok: bool
+79 last_check_ok_time: datetime | None = field(
+80 metadata=field_options(alias="lastcheckoktime_iso8601")
+81 )
+82 last_check_time: datetime | None = field(
+83 metadata=field_options(alias="lastchecktime_iso8601")
+84 )
+85 last_local_check_time: datetime | None = field(
+86 metadata=field_options(alias="lastlocalchecktime_iso8601")
+87 )
+88 name: str
+89 ssl_error: int
+90 state: str
+91 uuid: str = field(metadata=field_options(alias="stationuuid"))
+92 tags: list[str] = field(
+93 metadata=field_options(serialization_strategy=CommaSeparatedString())
+94 )
+95 url_resolved: str
+96 url: str
+97 votes: int
+ +99 @property
+100 def country(self) -> str | None:
+101 """Return country name of this station.
+ +103 Returns
+104 -------
+105 Country name or None if no country code is set.
+ +107 """
+108 if resolved_country := pycountry.countries.get(alpha_2=self.country_code):
+109 return cast("str", resolved_country.name)
+110 return None
+ + +113@dataclass
+114class Country(DataClassORJSONMixin):
+115 """Object information for a Counbtry from the Radio Browser."""
+ +117 code: str
+118 name: str
+119 station_count: str = field(metadata=field_options(alias="stationcount"))
+ +121 @property
+122 def favicon(self) -> str:
+123 """Return the favicon URL for the country.
+ +125 Returns
+126 -------
+127 URL to the favicon.
+ +129 """
+130 return f"https://flagcdn.com/256x192/{self.code.lower()}.png"
+ + +133@dataclass
+134class Language(DataClassORJSONMixin):
+135 """Object information for a Language from the Radio Browser."""
+ +137 code: str | None = field(metadata=field_options(alias="iso_639"))
+138 name: str
+139 station_count: str = field(metadata=field_options(alias="stationcount"))
+ +141 @property
+142 def favicon(self) -> str | None:
+143 """Return the favicon URL for the language.
+ +145 Returns
+146 -------
+147 URL to the favicon.
+ +149 """
+150 if self.code:
+151 return f"https://flagcdn.com/256x192/{self.code.lower()}.png"
+152 return None
+ + +155@dataclass
+156class Tag(DataClassORJSONMixin):
+157 """Object information for a Tag from the Radio Browser."""
+ +159 name: str
+160 station_count: str = field(metadata=field_options(alias="stationcount"))
+Coverage for src/radios/radio_browser.py: 97% + + + + + ++ ++++ Coverage for src/radios/radio_browser.py: + 97% +
+ ++ 111 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
+ ++ + + + diff --git a/coverage-reports/coverage-initial.json b/coverage-reports/coverage-initial.json new file mode 100644 index 00000000..0d03b29f --- /dev/null +++ b/coverage-reports/coverage-initial.json @@ -0,0 +1 @@ +{"meta": {"format": 3, "version": "7.8.0", "timestamp": "2025-05-14T09:16:24.863312", "branch_coverage": true, "show_contexts": false}, "files": {"src/radios/__init__.py": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/const.py": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"Order": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "FilterBy": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/exceptions.py": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowserError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionTimeoutError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/models.py": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 84, "percent_covered": 85.22727272727273, "percent_covered_display": "85", "missing_lines": 9, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [22, 26, 108, 109, 110, 130, 150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110], [150, 151], [150, 152]], "functions": {"CommaSeparatedString.serialize": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "CommaSeparatedString.deserialize": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [26], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station.country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"CommaSeparatedString": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22, 26], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Stats": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "Tag": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/radio_browser.py": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 74, 80, 82, 86, 90, 91, 92, 103, 104, 105, 116, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 47, "num_statements": 111, "percent_covered": 35.172413793103445, "percent_covered_display": "35", "missing_lines": 64, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 30}, "missing_lines": [75, 76, 77, 78, 83, 84, 87, 88, 89, 106, 107, 108, 109, 110, 111, 112, 113, 114, 126, 127, 142, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 221, 232, 233, 234, 237, 286, 287, 288, 289, 290, 292, 311, 313, 327, 332, 333, 334, 365, 366, 367, 368, 369, 371, 381, 383, 410, 420, 422, 426, 427, 437, 447], "excluded_lines": [], "executed_branches": [[74, 80], [82, 86], [86, 90], [105, 116]], "missing_branches": [[74, 75], [82, 83], [86, 87], [87, 88], [87, 90], [88, 87], [88, 89], [105, 106], [181, 182], [181, 190], [184, 185], [184, 186], [186, 181], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [289, 292], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [368, 371], [426, -424], [426, 427]], "functions": {"RadioBrowser._request": {"executed_lines": [74, 80, 82, 86, 90, 91, 92, 103, 104, 105, 116], "summary": {"covered_lines": 11, "num_statements": 29, "percent_covered": 36.58536585365854, "percent_covered_display": "37", "missing_lines": 18, "excluded_lines": 0, "num_branches": 12, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 8}, "missing_lines": [75, 76, 77, 78, 83, 84, 87, 88, 89, 106, 107, 108, 109, 110, 111, 112, 113, 114], "excluded_lines": [], "executed_branches": [[74, 80], [82, 86], [86, 90], [105, 116]], "missing_branches": [[74, 75], [82, 83], [86, 87], [87, 88], [87, 90], [88, 87], [88, 89], [105, 106]]}, "RadioBrowser.stats": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [126, 127], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.station_click": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [142], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.countries": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 11, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 11, "excluded_lines": 0, "num_branches": 8, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 8}, "missing_lines": [169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194], "excluded_lines": [], "executed_branches": [], "missing_branches": [[181, 182], [181, 190], [184, 185], [184, 186], [186, 181], [186, 187], [190, 191], [190, 194]]}, "RadioBrowser.languages": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 5, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 5, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [221, 232, 233, 234, 237], "excluded_lines": [], "executed_branches": [], "missing_branches": [[233, 234], [233, 237]]}, "RadioBrowser.search": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 8, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 8, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [286, 287, 288, 289, 290, 292, 311, 313], "excluded_lines": [], "executed_branches": [], "missing_branches": [[287, 288], [287, 292], [289, 290], [289, 292]]}, "RadioBrowser.station": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 4, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 4, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [327, 332, 333, 334], "excluded_lines": [], "executed_branches": [], "missing_branches": [[332, 333], [332, 334]]}, "RadioBrowser.stations": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 8, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 8, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [365, 366, 367, 368, 369, 371, 381, 383], "excluded_lines": [], "executed_branches": [], "missing_branches": [[366, 367], [366, 371], [368, 369], [368, 371]]}, "RadioBrowser.tags": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [410, 420, 422], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.close": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [426, 427], "excluded_lines": [], "executed_branches": [], "missing_branches": [[426, -424], [426, 427]]}, "RadioBrowser.__aenter__": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [437], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.__aexit__": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [447], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowser": {"executed_lines": [74, 80, 82, 86, 90, 91, 92, 103, 104, 105, 116], "summary": {"covered_lines": 11, "num_statements": 75, "percent_covered": 13.761467889908257, "percent_covered_display": "14", "missing_lines": 64, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 30}, "missing_lines": [75, 76, 77, 78, 83, 84, 87, 88, 89, 106, 107, 108, 109, 110, 111, 112, 113, 114, 126, 127, 142, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 221, 232, 233, 234, 237, 286, 287, 288, 289, 290, 292, 311, 313, 327, 332, 333, 334, 365, 366, 367, 368, 369, 371, 381, 383, 410, 420, 422, 426, 427, 437, 447], "excluded_lines": [], "executed_branches": [[74, 80], [82, 86], [86, 90], [105, 116]], "missing_branches": [[74, 75], [82, 83], [86, 87], [87, 88], [87, 90], [88, 87], [88, 89], [105, 106], [181, 182], [181, 190], [184, 185], [184, 186], [186, 181], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [289, 292], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [368, 371], [426, -424], [426, 427]]}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}}, "totals": {"covered_lines": 167, "num_statements": 240, "percent_covered": 61.510791366906474, "percent_covered_display": "62", "missing_lines": 73, "excluded_lines": 0, "num_branches": 38, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 34}} \ No newline at end of file diff --git a/coverage-reports/coverage-post-generation.json b/coverage-reports/coverage-post-generation.json new file mode 100644 index 00000000..a29471ce --- /dev/null +++ b/coverage-reports/coverage-post-generation.json @@ -0,0 +1 @@ +{"meta": {"format": 3, "version": "7.8.0", "timestamp": "2025-05-14T09:18:33.700563", "branch_coverage": true, "show_contexts": false}, "files": {"src/radios/__init__.py": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/const.py": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"Order": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "FilterBy": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/exceptions.py": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowserError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionTimeoutError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/models.py": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 26, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 76, "num_statements": 84, "percent_covered": 86.36363636363636, "percent_covered_display": "86", "missing_lines": 8, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [22, 108, 109, 110, 130, 150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110], [150, 151], [150, 152]], "functions": {"CommaSeparatedString.serialize": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "CommaSeparatedString.deserialize": {"executed_lines": [26], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station.country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"CommaSeparatedString": {"executed_lines": [26], "summary": {"covered_lines": 1, "num_statements": 2, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Stats": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "Tag": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/radio_browser.py": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116, 118, 126, 127, 129, 142, 145, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 197, 221, 232, 233, 234, 237, 240, 286, 287, 288, 289, 290, 292, 311, 313, 315, 327, 332, 333, 334, 337, 365, 366, 367, 368, 369, 371, 381, 383, 386, 410, 420, 422, 424, 426, 427, 429, 437, 439, 447], "summary": {"covered_lines": 111, "num_statements": 111, "percent_covered": 97.24137931034483, "percent_covered_display": "97", "missing_lines": 0, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 4}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116], [181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [426, -424], [426, 427]], "missing_branches": [[88, 87], [186, 181], [289, 292], [368, 371]], "functions": {"RadioBrowser._request": {"executed_lines": [74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116], "summary": {"covered_lines": 29, "num_statements": 29, "percent_covered": 97.5609756097561, "percent_covered_display": "98", "missing_lines": 0, "excluded_lines": 0, "num_branches": 12, "num_partial_branches": 1, "covered_branches": 11, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116]], "missing_branches": [[88, 87]]}, "RadioBrowser.stats": {"executed_lines": [126, 127], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.station_click": {"executed_lines": [142], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.countries": {"executed_lines": [169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194], "summary": {"covered_lines": 11, "num_statements": 11, "percent_covered": 94.73684210526316, "percent_covered_display": "95", "missing_lines": 0, "excluded_lines": 0, "num_branches": 8, "num_partial_branches": 1, "covered_branches": 7, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194]], "missing_branches": [[186, 181]]}, "RadioBrowser.languages": {"executed_lines": [221, 232, 233, 234, 237], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[233, 234], [233, 237]], "missing_branches": []}, "RadioBrowser.search": {"executed_lines": [286, 287, 288, 289, 290, 292, 311, 313], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 91.66666666666667, "percent_covered_display": "92", "missing_lines": 0, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 1, "covered_branches": 3, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[287, 288], [287, 292], [289, 290]], "missing_branches": [[289, 292]]}, "RadioBrowser.station": {"executed_lines": [327, 332, 333, 334], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[332, 333], [332, 334]], "missing_branches": []}, "RadioBrowser.stations": {"executed_lines": [365, 366, 367, 368, 369, 371, 381, 383], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 91.66666666666667, "percent_covered_display": "92", "missing_lines": 0, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 1, "covered_branches": 3, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[366, 367], [366, 371], [368, 369]], "missing_branches": [[368, 371]]}, "RadioBrowser.tags": {"executed_lines": [410, 420, 422], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.close": {"executed_lines": [426, 427], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[426, -424], [426, 427]], "missing_branches": []}, "RadioBrowser.__aenter__": {"executed_lines": [437], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.__aexit__": {"executed_lines": [447], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowser": {"executed_lines": [74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116, 126, 127, 142, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 221, 232, 233, 234, 237, 286, 287, 288, 289, 290, 292, 311, 313, 327, 332, 333, 334, 365, 366, 367, 368, 369, 371, 381, 383, 410, 420, 422, 426, 427, 437, 447], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 96.3302752293578, "percent_covered_display": "96", "missing_lines": 0, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 4}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116], [181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [426, -424], [426, 427]], "missing_branches": [[88, 87], [186, 181], [289, 292], [368, 371]]}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/__init__.py": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 4, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"load_fixture": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 4, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/test_radio_browser.py": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 24, 27, 28, 30, 31, 32, 33, 34, 35, 36, 39, 40, 48, 49, 51, 52, 54, 55, 57, 58, 59, 60, 61, 63, 65, 68, 70, 71, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89, 91, 92, 94, 95, 96, 98, 99, 101, 103, 104, 106, 107, 108, 110, 111, 113, 115, 116, 118, 119, 120, 122, 123, 125, 127, 128, 130, 131, 132, 133, 134, 135, 136, 138, 139, 141, 142, 144, 145, 147, 149, 150, 151, 153, 154, 156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 188, 189, 191, 192, 194, 196, 197, 199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231, 233, 234, 236, 237, 239, 242, 250, 260, 262, 263, 265, 269, 271, 274, 276, 286, 287, 288, 291, 292, 294, 295, 297, 298, 300, 303, 311, 321, 323, 324, 326, 359, 361, 364, 366, 385, 386, 387, 388, 390, 391, 393, 426, 428, 431, 448, 467, 469, 470, 472, 505, 507, 510, 512, 513, 514, 516, 517, 519, 520, 522, 524, 525, 527, 560, 562, 565, 567, 577, 578, 579, 580, 582, 583, 585, 618, 620, 623, 633, 643, 645, 646, 648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673, 675, 676, 678, 679, 681, 682, 690, 700, 701, 702, 704, 705, 707, 708, 710, 712, 714, 715, 717, 718, 720, 722, 723, 725, 726, 728, 730, 732, 733, 735, 736, 738, 739, 741, 742, 743, 745, 746, 748, 749, 750, 751, 753, 754, 756, 757, 760, 770, 771, 773, 774, 776, 777, 779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 288, "num_statements": 292, "percent_covered": 98.63013698630137, "percent_covered_display": "99", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"radio_browser": {"executed_lines": [24], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "mock_session": {"executed_lines": [30, 31, 32, 33, 34, 35, 36], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "mock_dns_resolver": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 4, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_dns_resolution": {"executed_lines": [54, 55, 57, 58, 59, 60, 61, 63, 65, 68], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_creates_session_if_none": {"executed_lines": [73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89], "summary": {"covered_lines": 14, "num_statements": 14, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_timeout": {"executed_lines": [94, 95, 96, 98, 99, 101], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_connection_error": {"executed_lines": [106, 107, 108, 110, 111, 113], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_socket_error": {"executed_lines": [118, 119, 120, 122, 123, 125], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_invalid_content_type": {"executed_lines": [130, 131, 132, 133, 134, 135, 136, 138, 139], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_boolean_params": {"executed_lines": [144, 145, 147, 149, 150, 151], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stats": {"executed_lines": [156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186], "summary": {"covered_lines": 16, "num_statements": 16, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station_click": {"executed_lines": [191, 192, 194], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_countries": {"executed_lines": [199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231], "summary": {"covered_lines": 12, "num_statements": 12, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_countries_with_parameters": {"executed_lines": [236, 237, 239, 242, 250, 260], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_languages": {"executed_lines": [265, 269, 271, 274, 276, 286, 287, 288, 291, 292], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_languages_with_parameters": {"executed_lines": [297, 298, 300, 303, 311, 321], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search": {"executed_lines": [326, 359, 361, 364, 366, 385, 386, 387, 388], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search_with_filter": {"executed_lines": [393, 426, 428, 431, 448, 467], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station": {"executed_lines": [472, 505, 507, 510, 512, 513, 514], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station_not_found": {"executed_lines": [519, 520, 522], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stations": {"executed_lines": [527, 560, 562, 565, 567, 577, 578, 579, 580], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stations_with_filter": {"executed_lines": [585, 618, 620, 623, 633, 643], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_tags": {"executed_lines": [648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673], "summary": {"covered_lines": 12, "num_statements": 12, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_tags_with_parameters": {"executed_lines": [678, 679, 681, 682, 690, 700, 701, 702], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close": {"executed_lines": [707, 708, 710, 712], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close_no_session": {"executed_lines": [717, 718, 720], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close_not_owned": {"executed_lines": [725, 726, 728, 730], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_aenter": {"executed_lines": [735, 736], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_aexit": {"executed_lines": [741, 742, 743], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_context_manager": {"executed_lines": [748, 749, 750, 751], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_backoff_retry": {"executed_lines": [756, 757, 760, 770, 771, 773, 774], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search_with_all_parameters": {"executed_lines": [779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 27, 28, 39, 40, 48, 49, 51, 52, 70, 71, 91, 92, 103, 104, 115, 116, 127, 128, 141, 142, 153, 154, 188, 189, 196, 197, 233, 234, 262, 263, 294, 295, 323, 324, 390, 391, 469, 470, 516, 517, 524, 525, 582, 583, 645, 646, 675, 676, 704, 705, 714, 715, 722, 723, 732, 733, 738, 739, 745, 746, 753, 754, 776, 777], "summary": {"covered_lines": 77, "num_statements": 77, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"TestRadioBrowser": {"executed_lines": [54, 55, 57, 58, 59, 60, 61, 63, 65, 68, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89, 94, 95, 96, 98, 99, 101, 106, 107, 108, 110, 111, 113, 118, 119, 120, 122, 123, 125, 130, 131, 132, 133, 134, 135, 136, 138, 139, 144, 145, 147, 149, 150, 151, 156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 191, 192, 194, 199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231, 236, 237, 239, 242, 250, 260, 265, 269, 271, 274, 276, 286, 287, 288, 291, 292, 297, 298, 300, 303, 311, 321, 326, 359, 361, 364, 366, 385, 386, 387, 388, 393, 426, 428, 431, 448, 467, 472, 505, 507, 510, 512, 513, 514, 519, 520, 522, 527, 560, 562, 565, 567, 577, 578, 579, 580, 585, 618, 620, 623, 633, 643, 648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673, 678, 679, 681, 682, 690, 700, 701, 702, 707, 708, 710, 712, 717, 718, 720, 725, 726, 728, 730, 735, 736, 741, 742, 743, 748, 749, 750, 751, 756, 757, 760, 770, 771, 773, 774, 779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 203, "num_statements": 203, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 24, 27, 28, 30, 31, 32, 33, 34, 35, 36, 39, 40, 48, 49, 51, 52, 70, 71, 91, 92, 103, 104, 115, 116, 127, 128, 141, 142, 153, 154, 188, 189, 196, 197, 233, 234, 262, 263, 294, 295, 323, 324, 390, 391, 469, 470, 516, 517, 524, 525, 582, 583, 645, 646, 675, 676, 704, 705, 714, 715, 722, 723, 732, 733, 738, 739, 745, 746, 753, 754, 776, 777], "summary": {"covered_lines": 85, "num_statements": 89, "percent_covered": 95.50561797752809, "percent_covered_display": "96", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/test_radios.py": {"executed_lines": [1, 4, 5, 7, 10, 12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"test_json_request": {"executed_lines": [12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 7, 10], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 4, 5, 7, 10, 12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}}, "totals": {"covered_lines": 532, "num_statements": 546, "percent_covered": 96.23287671232876, "percent_covered_display": "96", "missing_lines": 14, "excluded_lines": 0, "num_branches": 38, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 8}} \ No newline at end of file diff --git a/test-results/COVERAGE_SUMMARY.md b/test-results/COVERAGE_SUMMARY.md new file mode 100644 index 00000000..3bf30e45 --- /dev/null +++ b/test-results/COVERAGE_SUMMARY.md @@ -0,0 +1,10 @@ +# Coverage Summary + +**Initial Coverage**: 61.5% +**Final Coverage**: 96.2% +**Improvement**: 34.7% + +## Coverage Improvements by File + +- `src/radios/models.py`: 85.2% → 86.4% +- `src/radios/radio_browser.py`: 35.2% → 97.2% diff --git a/test-results/api_interaction_logs.json b/test-results/api_interaction_logs.json new file mode 100644 index 00000000..f3a76de4 --- /dev/null +++ b/test-results/api_interaction_logs.json @@ -0,0 +1,2 @@ +[] +{"timestamp": 1747214187.0401602, "file": "src/radios/radio_browser.py", "prompt_length": 32325, "model": "anthropic/claude-3.7-sonnet", "response_length": 30780, "clean_code_length": 30766, "generation_time": 102.7478232383728, "success": true, "token_usage": {"prompt_tokens": 8698, "completion_tokens": 8294, "total_tokens": 16992}} diff --git a/test-results/coverage-analysis.json b/test-results/coverage-analysis.json new file mode 100644 index 00000000..1b36ea8e --- /dev/null +++ b/test-results/coverage-analysis.json @@ -0,0 +1,16 @@ +{ + "improvements": [ + { + "file": "src/radios/models.py", + "from": 85.22727272727273, + "to": 86.36363636363636 + }, + { + "file": "src/radios/radio_browser.py", + "from": 35.172413793103445, + "to": 97.24137931034483 + } + ], + "still_low": [], + "failed_tests": [] +} \ No newline at end of file diff --git a/test-results/coverage-final/class_index.html b/test-results/coverage-final/class_index.html new file mode 100644 index 00000000..836f4e7a --- /dev/null +++ b/test-results/coverage-final/class_index.html @@ -0,0 +1,164 @@ + + + + +1"""Asynchronous Python client for the Radio Browser API."""
+ +3from __future__ import annotations
+ +5import asyncio
+6import random
+7import socket
+8from dataclasses import dataclass
+9from typing import Any, Self
+ +11import aiohttp
+12import backoff
+13import orjson
+14import pycountry
+15from aiodns import DNSResolver
+16from aiohttp import hdrs
+17from yarl import URL
+ +19from .const import FilterBy, Order
+20from .exceptions import (
+21 RadioBrowserConnectionError,
+22 RadioBrowserConnectionTimeoutError,
+23 RadioBrowserError,
+24)
+25from .models import Country, Language, Station, Stats, Tag
+ + +28@dataclass
+29class RadioBrowser:
+30 """Main class for handling connections with the Radio Browser API."""
+ +32 user_agent: str
+ +34 request_timeout: float = 8.0
+35 session: aiohttp.client.ClientSession | None = None
+ +37 _close_session: bool = False
+38 _host: str | None = None
+ +40 @backoff.on_exception(
+41 backoff.expo, RadioBrowserConnectionError, max_tries=5, logger=None
+42 )
+43 async def _request(
+44 self,
+45 uri: str = "",
+46 method: str = hdrs.METH_GET,
+47 params: dict[str, Any] | None = None,
+48 ) -> str:
+49 """Handle a request to the Radio Browser API.
+ +51 A generic method for sending/handling HTTP requests done against
+52 the Radio Browser API.
+ +54 Args:
+55 ----
+56 uri: Request URI, for example `stats`.
+57 method: HTTP method to use for the request.E.g., "GET" or "POST".
+58 params: Dictionary of data to send to the Radio Browser API.
+ +60 Returns:
+61 -------
+62 The response from the Radio Browser API.
+ +64 Raises:
+65 ------
+66 RadioBrowserConnectionError: An error occurred while communication with
+67 the Radio Browser API.
+68 RadioBrowserConnectionTimeoutError: A timeout occurred while communicating
+69 with the Radio Browser API.
+70 RadioBrowserError: Received an unexpected response from the
+71 Radio Browser API.
+ +73 """
+74 if self._host is None:
+75 resolver = DNSResolver()
+76 result = await resolver.query("_api._tcp.radio-browser.info", "SRV")
+77 random.shuffle(result)
+78 self._host = result[0].host
+ +80 url = URL.build(scheme="https", host=self._host, path="/json/").join(URL(uri))
+ +82 if self.session is None:
+83 self.session = aiohttp.ClientSession()
+84 self._close_session = True
+ +86 if params:
+87 for key, value in params.items():
+88 if isinstance(value, bool): 88 ↛ 87line 88 didn't jump to line 87 because the condition on line 88 was always true
+89 params[key] = str(value).lower()
+90 try:
+91 async with asyncio.timeout(self.request_timeout):
+92 response = await self.session.request(
+93 method,
+94 url,
+95 headers={
+96 "User-Agent": self.user_agent,
+97 "Accept": "application/json",
+98 },
+99 params=params,
+100 raise_for_status=True,
+101 )
+ +103 content_type = response.headers.get("Content-Type", "")
+104 text = await response.text()
+105 if "application/json" not in content_type:
+106 raise RadioBrowserError(response.status, {"message": text})
+107 except asyncio.TimeoutError as exception:
+108 self._host = None
+109 msg = "Timeout occurred while connecting to the Radio Browser API"
+110 raise RadioBrowserConnectionTimeoutError(msg) from exception
+111 except (aiohttp.ClientError, socket.gaierror) as exception:
+112 self._host = None
+113 msg = "Error occurred while communicating with the Radio Browser API"
+114 raise RadioBrowserConnectionError(msg) from exception
+ +116 return text
+ +118 async def stats(self) -> Stats:
+119 """Get Radio Browser service stats.
+ +121 Returns
+122 -------
+123 A Stats object, with information about the Radio Browser API.
+ +125 """
+126 response = await self._request("stats")
+127 return Stats.from_json(response)
+ +129 async def station_click(self, *, uuid: str) -> None:
+130 """Register click on a station.
+ +132 Increase the click count of a station by one. This should be called
+133 every time when a user starts playing a stream to mark the stream more
+134 popular than others. Every call to this endpoint from the same IP
+135 address and for the same station only gets counted once per day.
+ +137 Args:
+138 ----
+139 uuid: UUID of the station.
+ +141 """
+142 await self._request(f"url/{uuid}")
+ +144 # pylint: disable-next=too-many-arguments
+145 async def countries(
+146 self,
+147 *,
+148 hide_broken: bool = False,
+149 limit: int = 100000,
+150 offset: int = 0,
+151 order: Order = Order.NAME,
+152 reverse: bool = False,
+153 ) -> list[Country]:
+154 """Get list of available countries.
+ +156 Args:
+157 ----
+158 hide_broken: Do not count broken stations.
+159 limit: Limit the number of results.
+160 offset: Offset the results.
+161 order: Order the results.
+162 reverse: Reverse the order of the results.
+ +164 Returns:
+165 -------
+166 A Stats object, with information about the Radio Browser API.
+ +168 """
+169 countries_data = await self._request(
+170 "countrycodes",
+171 params={
+172 "hidebroken": hide_broken,
+173 "limit": limit,
+174 "offset": offset,
+175 "order": order.value,
+176 "reverse": reverse,
+177 },
+178 )
+ +180 countries = orjson.loads(countries_data) # pylint: disable=no-member
+181 for country in countries: # pylint: disable=not-an-iterable
+182 country["code"] = country["name"]
+183 # https://github.com/frenck/python-radios/issues/19
+184 if country["name"] == "XK":
+185 country["name"] = "Kosovo"
+186 elif resolved_country := pycountry.countries.get(alpha_2=country["name"]): 186 ↛ 181line 186 didn't jump to line 181 because the condition on line 186 was always true
+187 country["name"] = resolved_country.name
+ +189 # Because we enrichted the countries we need to re-order in this case
+190 if order == Order.NAME:
+191 countries.sort(key=lambda country: country["name"])
+ +193 # pylint: disable-next=not-an-iterable
+194 return [Country.from_dict(country) for country in countries]
+ +196 # pylint: disable-next=too-many-arguments
+197 async def languages(
+198 self,
+199 *,
+200 hide_broken: bool = False,
+201 limit: int = 100000,
+202 offset: int = 0,
+203 order: Order = Order.NAME,
+204 reverse: bool = False,
+205 ) -> list[Language]:
+206 """Get list of available languages.
+ +208 Args:
+209 ----
+210 hide_broken: Do not count broken stations.
+211 limit: Limit the number of results.
+212 offset: Offset the results.
+213 order: Order the results.
+214 reverse: Reverse the order of the results.
+ +216 Returns:
+217 -------
+218 A list of Language objects.
+ +220 """
+221 languages_data = await self._request(
+222 "languages",
+223 params={
+224 "hidebroken": hide_broken,
+225 "offset": offset,
+226 "order": order.value,
+227 "reverse": reverse,
+228 "limit": limit,
+229 },
+230 )
+ +232 languages = orjson.loads(languages_data) # pylint: disable=no-member
+233 for language in languages: # pylint: disable=not-an-iterable
+234 language["name"] = language["name"].title()
+ +236 # pylint: disable-next=not-an-iterable
+237 return [Language.from_dict(language) for language in languages]
+ +239 # pylint: disable-next=too-many-arguments, too-many-locals
+240 async def search( # noqa: PLR0913
+241 self,
+242 *,
+243 filter_by: FilterBy | None = None,
+244 filter_term: str | None = None,
+245 hide_broken: bool = False,
+246 limit: int = 100000,
+247 offset: int = 0,
+248 order: Order = Order.NAME,
+249 reverse: bool = False,
+250 name: str | None = None,
+251 name_exact: bool = False,
+252 country: str | None = "",
+253 country_exact: bool = False,
+254 state_exact: bool = False,
+255 language_exact: bool = False,
+256 tag_exact: bool = False,
+257 bitrate_min: int = 0,
+258 bitrate_max: int = 1000000,
+259 ) -> list[Station]:
+260 """Get list of radio stations.
+ +262 Args:
+263 ----
+264 filter_by: Filter the results by a specific field.
+265 filter_term: Search term to filter the results.
+266 hide_broken: Do not count broken stations.
+267 limit: Limit the number of results.
+268 offset: Offset the results.
+269 order: Order the results.
+270 reverse: Reverse the order of the results.
+271 name: Search by name.
+272 name_exact: Search by exact name.
+273 country: Search by country.
+274 country_exact: Search by exact country.
+275 state_exact: Search by exact state.
+276 language_exact: Search by exact language.
+277 tag_exact: Search by exact tag.
+278 bitrate_min: Search by minimum bitrate.
+279 bitrate_max: Search by maximum bitrate.
+ +281 Returns:
+282 -------
+283 A list of Station objects.
+ +285 """
+286 uri = "stations/search"
+287 if filter_by is not None:
+288 uri = f"{uri}/{filter_by.value}"
+289 if filter_term is not None: 289 ↛ 292line 289 didn't jump to line 292 because the condition on line 289 was always true
+290 uri = f"{uri}/{filter_term}"
+ +292 stations_data = await self._request(
+293 uri,
+294 params={
+295 "hidebroken": hide_broken,
+296 "offset": offset,
+297 "order": order.value,
+298 "reverse": reverse,
+299 "limit": limit,
+300 "name": name,
+301 "name_exact": name_exact,
+302 "country": country,
+303 "country_exact": country_exact,
+304 "state_exact": state_exact,
+305 "language_exact": language_exact,
+306 "tag_exact": tag_exact,
+307 "bitrate_min": bitrate_min,
+308 "bitrate_max": bitrate_max,
+309 },
+310 )
+311 stations = orjson.loads(stations_data) # pylint: disable=no-member
+312 # pylint: disable-next=not-an-iterable
+313 return [Station.from_dict(station) for station in stations]
+ +315 async def station(self, *, uuid: str) -> Station | None:
+316 """Get station by UUID.
+ +318 Args:
+319 ----
+320 uuid: UUID of the station.
+ +322 Returns:
+323 -------
+324 A Station object if found.
+ +326 """
+327 stations = await self.stations(
+328 filter_by=FilterBy.UUID,
+329 filter_term=uuid,
+330 limit=1,
+331 )
+332 if not stations:
+333 return None
+334 return stations[0]
+ +336 # pylint: disable-next=too-many-arguments
+337 async def stations( # noqa: PLR0913
+338 self,
+339 *,
+340 filter_by: FilterBy | None = None,
+341 filter_term: str | None = None,
+342 hide_broken: bool = False,
+343 limit: int = 100000,
+344 offset: int = 0,
+345 order: Order = Order.NAME,
+346 reverse: bool = False,
+347 ) -> list[Station]:
+348 """Get list of radio stations.
+ +350 Args:
+351 ----
+352 filter_by: Filter the results by a specific field.
+353 filter_term: Search term to filter the results.
+354 hide_broken: Do not count broken stations.
+355 limit: Limit the number of results.
+356 offset: Offset the results.
+357 order: Order the results.
+358 reverse: Reverse the order of the results.
+ +360 Returns:
+361 -------
+362 A list of Station objects.
+ +364 """
+365 uri = "stations"
+366 if filter_by is not None:
+367 uri = f"{uri}/{filter_by.value}"
+368 if filter_term is not None: 368 ↛ 371line 368 didn't jump to line 371 because the condition on line 368 was always true
+369 uri = f"{uri}/{filter_term}"
+ +371 stations_data = await self._request(
+372 uri,
+373 params={
+374 "hidebroken": hide_broken,
+375 "offset": offset,
+376 "order": order.value,
+377 "reverse": reverse,
+378 "limit": limit,
+379 },
+380 )
+381 stations = orjson.loads(stations_data) # pylint: disable=no-member
+382 # pylint: disable-next=not-an-iterable
+383 return [Station.from_dict(station) for station in stations]
+ +385 # pylint: disable-next=too-many-arguments
+386 async def tags(
+387 self,
+388 *,
+389 hide_broken: bool = False,
+390 limit: int = 100000,
+391 offset: int = 0,
+392 order: Order = Order.NAME,
+393 reverse: bool = False,
+394 ) -> list[Tag]:
+395 """Get list of available tags.
+ +397 Args:
+398 ----
+399 hide_broken: Do not count broken stations.
+400 limit: Limit the number of results.
+401 offset: Offset the results.
+402 order: Order the results.
+403 reverse: Reverse the order of the results.
+ +405 Returns:
+406 -------
+407 A list of Tags objects.
+ +409 """
+410 tags_data = await self._request(
+411 "tags",
+412 params={
+413 "hidebroken": hide_broken,
+414 "offset": offset,
+415 "order": order.value,
+416 "reverse": reverse,
+417 "limit": limit,
+418 },
+419 )
+420 tags = orjson.loads(tags_data) # pylint: disable=no-member
+421 # pylint: disable-next=not-an-iterable
+422 return [Tag.from_dict(tag) for tag in tags]
+ +424 async def close(self) -> None:
+425 """Close open client session."""
+426 if self.session and self._close_session:
+427 await self.session.close()
+ +429 async def __aenter__(self) -> Self:
+430 """Async enter.
+ +432 Returns
+433 -------
+434 The RadioBrowser object.
+ +436 """
+437 return self
+ +439 async def __aexit__(self, *_exc_info: object) -> None:
+440 """Async exit.
+ +442 Args:
+443 ----
+444 _exc_info: Exec type.
+ +446 """
+447 await self.close()
+Coverage report + + + + + ++ +++Coverage report: + 93% +
+ + ++ Files + Functions + Classes +
++ coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
++ + + + diff --git a/test-results/coverage-final/coverage.json b/test-results/coverage-final/coverage.json new file mode 100644 index 00000000..a49ed08a --- /dev/null +++ b/test-results/coverage-final/coverage.json @@ -0,0 +1 @@ +{"meta": {"format": 3, "version": "7.8.0", "timestamp": "2025-05-14T09:19:16.404305", "branch_coverage": true, "show_contexts": false}, "files": {"src/radios/__init__.py": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/const.py": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"Order": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "FilterBy": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/exceptions.py": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowserError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionTimeoutError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/models.py": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 26, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 76, "num_statements": 84, "percent_covered": 86.36363636363636, "percent_covered_display": "86", "missing_lines": 8, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [22, 108, 109, 110, 130, 150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110], [150, 151], [150, 152]], "functions": {"CommaSeparatedString.serialize": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "CommaSeparatedString.deserialize": {"executed_lines": [26], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station.country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"CommaSeparatedString": {"executed_lines": [26], "summary": {"covered_lines": 1, "num_statements": 2, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Stats": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "Tag": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/radio_browser.py": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116, 118, 126, 127, 129, 142, 145, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 197, 221, 232, 233, 234, 237, 240, 286, 287, 288, 289, 290, 292, 311, 313, 315, 327, 332, 333, 334, 337, 365, 366, 367, 368, 369, 371, 381, 383, 386, 410, 420, 422, 424, 426, 427, 429, 437, 439, 447], "summary": {"covered_lines": 111, "num_statements": 111, "percent_covered": 97.24137931034483, "percent_covered_display": "97", "missing_lines": 0, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 4}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116], [181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [426, -424], [426, 427]], "missing_branches": [[88, 87], [186, 181], [289, 292], [368, 371]], "functions": {"RadioBrowser._request": {"executed_lines": [74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116], "summary": {"covered_lines": 29, "num_statements": 29, "percent_covered": 97.5609756097561, "percent_covered_display": "98", "missing_lines": 0, "excluded_lines": 0, "num_branches": 12, "num_partial_branches": 1, "covered_branches": 11, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116]], "missing_branches": [[88, 87]]}, "RadioBrowser.stats": {"executed_lines": [126, 127], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.station_click": {"executed_lines": [142], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.countries": {"executed_lines": [169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194], "summary": {"covered_lines": 11, "num_statements": 11, "percent_covered": 94.73684210526316, "percent_covered_display": "95", "missing_lines": 0, "excluded_lines": 0, "num_branches": 8, "num_partial_branches": 1, "covered_branches": 7, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194]], "missing_branches": [[186, 181]]}, "RadioBrowser.languages": {"executed_lines": [221, 232, 233, 234, 237], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[233, 234], [233, 237]], "missing_branches": []}, "RadioBrowser.search": {"executed_lines": [286, 287, 288, 289, 290, 292, 311, 313], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 91.66666666666667, "percent_covered_display": "92", "missing_lines": 0, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 1, "covered_branches": 3, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[287, 288], [287, 292], [289, 290]], "missing_branches": [[289, 292]]}, "RadioBrowser.station": {"executed_lines": [327, 332, 333, 334], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[332, 333], [332, 334]], "missing_branches": []}, "RadioBrowser.stations": {"executed_lines": [365, 366, 367, 368, 369, 371, 381, 383], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 91.66666666666667, "percent_covered_display": "92", "missing_lines": 0, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 1, "covered_branches": 3, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[366, 367], [366, 371], [368, 369]], "missing_branches": [[368, 371]]}, "RadioBrowser.tags": {"executed_lines": [410, 420, 422], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.close": {"executed_lines": [426, 427], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[426, -424], [426, 427]], "missing_branches": []}, "RadioBrowser.__aenter__": {"executed_lines": [437], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.__aexit__": {"executed_lines": [447], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowser": {"executed_lines": [74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116, 126, 127, 142, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 221, 232, 233, 234, 237, 286, 287, 288, 289, 290, 292, 311, 313, 327, 332, 333, 334, 365, 366, 367, 368, 369, 371, 381, 383, 410, 420, 422, 426, 427, 437, 447], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 96.3302752293578, "percent_covered_display": "96", "missing_lines": 0, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 4}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116], [181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [426, -424], [426, 427]], "missing_branches": [[88, 87], [186, 181], [289, 292], [368, 371]]}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/__init__.py": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 4, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"load_fixture": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 4, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/test_radio_browser.py": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 24, 27, 28, 30, 31, 32, 33, 34, 35, 36, 39, 40, 48, 49, 51, 52, 54, 55, 57, 58, 59, 60, 61, 63, 65, 68, 70, 71, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89, 91, 92, 94, 95, 96, 98, 99, 101, 103, 104, 106, 107, 108, 110, 111, 113, 115, 116, 118, 119, 120, 122, 123, 125, 127, 128, 130, 131, 132, 133, 134, 135, 136, 138, 139, 141, 142, 144, 145, 147, 149, 150, 151, 153, 154, 156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 188, 189, 191, 192, 194, 196, 197, 199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231, 233, 234, 236, 237, 239, 242, 250, 260, 262, 263, 265, 269, 271, 274, 276, 286, 287, 288, 291, 292, 294, 295, 297, 298, 300, 303, 311, 321, 323, 324, 326, 359, 361, 364, 366, 385, 386, 387, 388, 390, 391, 393, 426, 428, 431, 448, 467, 469, 470, 472, 505, 507, 510, 512, 513, 514, 516, 517, 519, 520, 522, 524, 525, 527, 560, 562, 565, 567, 577, 578, 579, 580, 582, 583, 585, 618, 620, 623, 633, 643, 645, 646, 648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673, 675, 676, 678, 679, 681, 682, 690, 700, 701, 702, 704, 705, 707, 708, 710, 712, 714, 715, 717, 718, 720, 722, 723, 725, 726, 728, 730, 732, 733, 735, 736, 738, 739, 741, 742, 743, 745, 746, 748, 749, 750, 751, 753, 754, 756, 757, 760, 770, 771, 773, 774, 776, 777, 779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 288, "num_statements": 292, "percent_covered": 98.63013698630137, "percent_covered_display": "99", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"radio_browser": {"executed_lines": [24], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "mock_session": {"executed_lines": [30, 31, 32, 33, 34, 35, 36], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "mock_dns_resolver": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 4, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_dns_resolution": {"executed_lines": [54, 55, 57, 58, 59, 60, 61, 63, 65, 68], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_creates_session_if_none": {"executed_lines": [73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89], "summary": {"covered_lines": 14, "num_statements": 14, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_timeout": {"executed_lines": [94, 95, 96, 98, 99, 101], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_connection_error": {"executed_lines": [106, 107, 108, 110, 111, 113], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_socket_error": {"executed_lines": [118, 119, 120, 122, 123, 125], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_invalid_content_type": {"executed_lines": [130, 131, 132, 133, 134, 135, 136, 138, 139], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_boolean_params": {"executed_lines": [144, 145, 147, 149, 150, 151], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stats": {"executed_lines": [156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186], "summary": {"covered_lines": 16, "num_statements": 16, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station_click": {"executed_lines": [191, 192, 194], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_countries": {"executed_lines": [199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231], "summary": {"covered_lines": 12, "num_statements": 12, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_countries_with_parameters": {"executed_lines": [236, 237, 239, 242, 250, 260], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_languages": {"executed_lines": [265, 269, 271, 274, 276, 286, 287, 288, 291, 292], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_languages_with_parameters": {"executed_lines": [297, 298, 300, 303, 311, 321], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search": {"executed_lines": [326, 359, 361, 364, 366, 385, 386, 387, 388], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search_with_filter": {"executed_lines": [393, 426, 428, 431, 448, 467], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station": {"executed_lines": [472, 505, 507, 510, 512, 513, 514], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station_not_found": {"executed_lines": [519, 520, 522], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stations": {"executed_lines": [527, 560, 562, 565, 567, 577, 578, 579, 580], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stations_with_filter": {"executed_lines": [585, 618, 620, 623, 633, 643], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_tags": {"executed_lines": [648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673], "summary": {"covered_lines": 12, "num_statements": 12, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_tags_with_parameters": {"executed_lines": [678, 679, 681, 682, 690, 700, 701, 702], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close": {"executed_lines": [707, 708, 710, 712], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close_no_session": {"executed_lines": [717, 718, 720], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close_not_owned": {"executed_lines": [725, 726, 728, 730], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_aenter": {"executed_lines": [735, 736], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_aexit": {"executed_lines": [741, 742, 743], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_context_manager": {"executed_lines": [748, 749, 750, 751], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_backoff_retry": {"executed_lines": [756, 757, 760, 770, 771, 773, 774], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search_with_all_parameters": {"executed_lines": [779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 27, 28, 39, 40, 48, 49, 51, 52, 70, 71, 91, 92, 103, 104, 115, 116, 127, 128, 141, 142, 153, 154, 188, 189, 196, 197, 233, 234, 262, 263, 294, 295, 323, 324, 390, 391, 469, 470, 516, 517, 524, 525, 582, 583, 645, 646, 675, 676, 704, 705, 714, 715, 722, 723, 732, 733, 738, 739, 745, 746, 753, 754, 776, 777], "summary": {"covered_lines": 77, "num_statements": 77, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"TestRadioBrowser": {"executed_lines": [54, 55, 57, 58, 59, 60, 61, 63, 65, 68, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89, 94, 95, 96, 98, 99, 101, 106, 107, 108, 110, 111, 113, 118, 119, 120, 122, 123, 125, 130, 131, 132, 133, 134, 135, 136, 138, 139, 144, 145, 147, 149, 150, 151, 156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 191, 192, 194, 199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231, 236, 237, 239, 242, 250, 260, 265, 269, 271, 274, 276, 286, 287, 288, 291, 292, 297, 298, 300, 303, 311, 321, 326, 359, 361, 364, 366, 385, 386, 387, 388, 393, 426, 428, 431, 448, 467, 472, 505, 507, 510, 512, 513, 514, 519, 520, 522, 527, 560, 562, 565, 567, 577, 578, 579, 580, 585, 618, 620, 623, 633, 643, 648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673, 678, 679, 681, 682, 690, 700, 701, 702, 707, 708, 710, 712, 717, 718, 720, 725, 726, 728, 730, 735, 736, 741, 742, 743, 748, 749, 750, 751, 756, 757, 760, 770, 771, 773, 774, 779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 203, "num_statements": 203, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 24, 27, 28, 30, 31, 32, 33, 34, 35, 36, 39, 40, 48, 49, 51, 52, 70, 71, 91, 92, 103, 104, 115, 116, 127, 128, 141, 142, 153, 154, 188, 189, 196, 197, 233, 234, 262, 263, 294, 295, 323, 324, 390, 391, 469, 470, 516, 517, 524, 525, 582, 583, 645, 646, 675, 676, 704, 705, 714, 715, 722, 723, 732, 733, 738, 739, 745, 746, 753, 754, 776, 777], "summary": {"covered_lines": 85, "num_statements": 89, "percent_covered": 95.50561797752809, "percent_covered_display": "96", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/test_radios.py": {"executed_lines": [1, 4, 5, 7, 10, 12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"test_json_request": {"executed_lines": [12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 7, 10], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 4, 5, 7, 10, 12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}}, "totals": {"covered_lines": 532, "num_statements": 546, "percent_covered": 96.23287671232876, "percent_covered_display": "96", "missing_lines": 14, "excluded_lines": 0, "num_branches": 38, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 8}} \ No newline at end of file diff --git a/test-results/coverage-final/coverage_html_cb_6fb7b396.js b/test-results/coverage-final/coverage_html_cb_6fb7b396.js new file mode 100644 index 00000000..1face13d --- /dev/null +++ b/test-results/coverage-final/coverage_html_cb_6fb7b396.js @@ -0,0 +1,733 @@ +// Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +// For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt + +// Coverage.py HTML report browser code. +/*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, indent: 4 */ +/*global coverage: true, document, window, $ */ + +coverage = {}; + +// General helpers +function debounce(callback, wait) { + let timeoutId = null; + return function(...args) { + clearTimeout(timeoutId); + timeoutId = setTimeout(() => { + callback.apply(this, args); + }, wait); + }; +}; + +function checkVisible(element) { + const rect = element.getBoundingClientRect(); + const viewBottom = Math.max(document.documentElement.clientHeight, window.innerHeight); + const viewTop = 30; + return !(rect.bottom < viewTop || rect.top >= viewBottom); +} + +function on_click(sel, fn) { + const elt = document.querySelector(sel); + if (elt) { + elt.addEventListener("click", fn); + } +} + +// Helpers for table sorting +function getCellValue(row, column = 0) { + const cell = row.cells[column] // nosemgrep: eslint.detect-object-injection + if (cell.childElementCount == 1) { + var child = cell.firstElementChild; + if (child.tagName === "A") { + child = child.firstElementChild; + } + if (child instanceof HTMLDataElement && child.value) { + return child.value; + } + } + return cell.innerText || cell.textContent; +} + +function rowComparator(rowA, rowB, column = 0) { + let valueA = getCellValue(rowA, column); + let valueB = getCellValue(rowB, column); + if (!isNaN(valueA) && !isNaN(valueB)) { + return valueA - valueB; + } + return valueA.localeCompare(valueB, undefined, {numeric: true}); +} + +function sortColumn(th) { + // Get the current sorting direction of the selected header, + // clear state on other headers and then set the new sorting direction. + const currentSortOrder = th.getAttribute("aria-sort"); + [...th.parentElement.cells].forEach(header => header.setAttribute("aria-sort", "none")); + var direction; + if (currentSortOrder === "none") { + direction = th.dataset.defaultSortOrder || "ascending"; + } + else if (currentSortOrder === "ascending") { + direction = "descending"; + } + else { + direction = "ascending"; + } + th.setAttribute("aria-sort", direction); + + const column = [...th.parentElement.cells].indexOf(th) + + // Sort all rows and afterwards append them in order to move them in the DOM. + Array.from(th.closest("table").querySelectorAll("tbody tr")) + .sort((rowA, rowB) => rowComparator(rowA, rowB, column) * (direction === "ascending" ? 1 : -1)) + .forEach(tr => tr.parentElement.appendChild(tr)); + + // Save the sort order for next time. + if (th.id !== "region") { + let th_id = "file"; // Sort by file if we don't have a column id + let current_direction = direction; + const stored_list = localStorage.getItem(coverage.INDEX_SORT_STORAGE); + if (stored_list) { + ({th_id, direction} = JSON.parse(stored_list)) + } + localStorage.setItem(coverage.INDEX_SORT_STORAGE, JSON.stringify({ + "th_id": th.id, + "direction": current_direction + })); + if (th.id !== th_id || document.getElementById("region")) { + // Sort column has changed, unset sorting by function or class. + localStorage.setItem(coverage.SORTED_BY_REGION, JSON.stringify({ + "by_region": false, + "region_direction": current_direction + })); + } + } + else { + // Sort column has changed to by function or class, remember that. + localStorage.setItem(coverage.SORTED_BY_REGION, JSON.stringify({ + "by_region": true, + "region_direction": direction + })); + } +} + +// Find all the elements with data-shortcut attribute, and use them to assign a shortcut key. +coverage.assign_shortkeys = function () { + document.querySelectorAll("[data-shortcut]").forEach(element => { + document.addEventListener("keypress", event => { + if (event.target.tagName.toLowerCase() === "input") { + return; // ignore keypress from search filter + } + if (event.key === element.dataset.shortcut) { + element.click(); + } + }); + }); +}; + +// Create the events for the filter box. +coverage.wire_up_filter = function () { + // Populate the filter and hide100 inputs if there are saved values for them. + const saved_filter_value = localStorage.getItem(coverage.FILTER_STORAGE); + if (saved_filter_value) { + document.getElementById("filter").value = saved_filter_value; + } + const saved_hide100_value = localStorage.getItem(coverage.HIDE100_STORAGE); + if (saved_hide100_value) { + document.getElementById("hide100").checked = JSON.parse(saved_hide100_value); + } + + // Cache elements. + const table = document.querySelector("table.index"); + const table_body_rows = table.querySelectorAll("tbody tr"); + const no_rows = document.getElementById("no_rows"); + + // Observe filter keyevents. + const filter_handler = (event => { + // Keep running total of each metric, first index contains number of shown rows + const totals = new Array(table.rows[0].cells.length).fill(0); + // Accumulate the percentage as fraction + totals[totals.length - 1] = { "numer": 0, "denom": 0 }; // nosemgrep: eslint.detect-object-injection + + var text = document.getElementById("filter").value; + // Store filter value + localStorage.setItem(coverage.FILTER_STORAGE, text); + const casefold = (text === text.toLowerCase()); + const hide100 = document.getElementById("hide100").checked; + // Store hide value. + localStorage.setItem(coverage.HIDE100_STORAGE, JSON.stringify(hide100)); + + // Hide / show elements. + table_body_rows.forEach(row => { + var show = false; + // Check the text filter. + for (let column = 0; column < totals.length; column++) { + cell = row.cells[column]; + if (cell.classList.contains("name")) { + var celltext = cell.textContent; + if (casefold) { + celltext = celltext.toLowerCase(); + } + if (celltext.includes(text)) { + show = true; + } + } + } + + // Check the "hide covered" filter. + if (show && hide100) { + const [numer, denom] = row.cells[row.cells.length - 1].dataset.ratio.split(" "); + show = (numer !== denom); + } + + if (!show) { + // hide + row.classList.add("hidden"); + return; + } + + // show + row.classList.remove("hidden"); + totals[0]++; + + for (let column = 0; column < totals.length; column++) { + // Accumulate dynamic totals + cell = row.cells[column] // nosemgrep: eslint.detect-object-injection + if (cell.classList.contains("name")) { + continue; + } + if (column === totals.length - 1) { + // Last column contains percentage + const [numer, denom] = cell.dataset.ratio.split(" "); + totals[column]["numer"] += parseInt(numer, 10); // nosemgrep: eslint.detect-object-injection + totals[column]["denom"] += parseInt(denom, 10); // nosemgrep: eslint.detect-object-injection + } + else { + totals[column] += parseInt(cell.textContent, 10); // nosemgrep: eslint.detect-object-injection + } + } + }); + + // Show placeholder if no rows will be displayed. + if (!totals[0]) { + // Show placeholder, hide table. + no_rows.style.display = "block"; + table.style.display = "none"; + return; + } + + // Hide placeholder, show table. + no_rows.style.display = null; + table.style.display = null; + + const footer = table.tFoot.rows[0]; + // Calculate new dynamic sum values based on visible rows. + for (let column = 0; column < totals.length; column++) { + // Get footer cell element. + const cell = footer.cells[column]; // nosemgrep: eslint.detect-object-injection + if (cell.classList.contains("name")) { + continue; + } + + // Set value into dynamic footer cell element. + if (column === totals.length - 1) { + // Percentage column uses the numerator and denominator, + // and adapts to the number of decimal places. + const match = /\.([0-9]+)/.exec(cell.textContent); + const places = match ? match[1].length : 0; + const { numer, denom } = totals[column]; // nosemgrep: eslint.detect-object-injection + cell.dataset.ratio = `${numer} ${denom}`; + // Check denom to prevent NaN if filtered files contain no statements + cell.textContent = denom + ? `${(numer * 100 / denom).toFixed(places)}%` + : `${(100).toFixed(places)}%`; + } + else { + cell.textContent = totals[column]; // nosemgrep: eslint.detect-object-injection + } + } + }); + + document.getElementById("filter").addEventListener("input", debounce(filter_handler)); + document.getElementById("hide100").addEventListener("input", debounce(filter_handler)); + + // Trigger change event on setup, to force filter on page refresh + // (filter value may still be present). + document.getElementById("filter").dispatchEvent(new Event("input")); + document.getElementById("hide100").dispatchEvent(new Event("input")); +}; +coverage.FILTER_STORAGE = "COVERAGE_FILTER_VALUE"; +coverage.HIDE100_STORAGE = "COVERAGE_HIDE100_VALUE"; + +// Set up the click-to-sort columns. +coverage.wire_up_sorting = function () { + document.querySelectorAll("[data-sortable] th[aria-sort]").forEach( + th => th.addEventListener("click", e => sortColumn(e.target)) + ); + + // Look for a localStorage item containing previous sort settings: + let th_id = "file", direction = "ascending"; + const stored_list = localStorage.getItem(coverage.INDEX_SORT_STORAGE); + if (stored_list) { + ({th_id, direction} = JSON.parse(stored_list)); + } + let by_region = false, region_direction = "ascending"; + const sorted_by_region = localStorage.getItem(coverage.SORTED_BY_REGION); + if (sorted_by_region) { + ({ + by_region, + region_direction + } = JSON.parse(sorted_by_region)); + } + + const region_id = "region"; + if (by_region && document.getElementById(region_id)) { + direction = region_direction; + } + // If we are in a page that has a column with id of "region", sort on + // it if the last sort was by function or class. + let th; + if (document.getElementById(region_id)) { + th = document.getElementById(by_region ? region_id : th_id); + } + else { + th = document.getElementById(th_id); + } + th.setAttribute("aria-sort", direction === "ascending" ? "descending" : "ascending"); + th.click() +}; + +coverage.INDEX_SORT_STORAGE = "COVERAGE_INDEX_SORT_2"; +coverage.SORTED_BY_REGION = "COVERAGE_SORT_REGION"; + +// Loaded on index.html +coverage.index_ready = function () { + coverage.assign_shortkeys(); + coverage.wire_up_filter(); + coverage.wire_up_sorting(); + + on_click(".button_prev_file", coverage.to_prev_file); + on_click(".button_next_file", coverage.to_next_file); + + on_click(".button_show_hide_help", coverage.show_hide_help); +}; + +// -- pyfile stuff -- + +coverage.LINE_FILTERS_STORAGE = "COVERAGE_LINE_FILTERS"; + +coverage.pyfile_ready = function () { + // If we're directed to a particular line number, highlight the line. + var frag = location.hash; + if (frag.length > 2 && frag[1] === "t") { + document.querySelector(frag).closest(".n").classList.add("highlight"); + coverage.set_sel(parseInt(frag.substr(2), 10)); + } + else { + coverage.set_sel(0); + } + + on_click(".button_toggle_run", coverage.toggle_lines); + on_click(".button_toggle_mis", coverage.toggle_lines); + on_click(".button_toggle_exc", coverage.toggle_lines); + on_click(".button_toggle_par", coverage.toggle_lines); + + on_click(".button_next_chunk", coverage.to_next_chunk_nicely); + on_click(".button_prev_chunk", coverage.to_prev_chunk_nicely); + on_click(".button_top_of_page", coverage.to_top); + on_click(".button_first_chunk", coverage.to_first_chunk); + + on_click(".button_prev_file", coverage.to_prev_file); + on_click(".button_next_file", coverage.to_next_file); + on_click(".button_to_index", coverage.to_index); + + on_click(".button_show_hide_help", coverage.show_hide_help); + + coverage.filters = undefined; + try { + coverage.filters = localStorage.getItem(coverage.LINE_FILTERS_STORAGE); + } catch(err) {} + + if (coverage.filters) { + coverage.filters = JSON.parse(coverage.filters); + } + else { + coverage.filters = {run: false, exc: true, mis: true, par: true}; + } + + for (cls in coverage.filters) { + coverage.set_line_visibilty(cls, coverage.filters[cls]); // nosemgrep: eslint.detect-object-injection + } + + coverage.assign_shortkeys(); + coverage.init_scroll_markers(); + coverage.wire_up_sticky_header(); + + document.querySelectorAll("[id^=ctxs]").forEach( + cbox => cbox.addEventListener("click", coverage.expand_contexts) + ); + + // Rebuild scroll markers when the window height changes. + window.addEventListener("resize", coverage.build_scroll_markers); +}; + +coverage.toggle_lines = function (event) { + const btn = event.target.closest("button"); + const category = btn.value + const show = !btn.classList.contains("show_" + category); + coverage.set_line_visibilty(category, show); + coverage.build_scroll_markers(); + coverage.filters[category] = show; + try { + localStorage.setItem(coverage.LINE_FILTERS_STORAGE, JSON.stringify(coverage.filters)); + } catch(err) {} +}; + +coverage.set_line_visibilty = function (category, should_show) { + const cls = "show_" + category; + const btn = document.querySelector(".button_toggle_" + category); + if (btn) { + if (should_show) { + document.querySelectorAll("#source ." + category).forEach(e => e.classList.add(cls)); + btn.classList.add(cls); + } + else { + document.querySelectorAll("#source ." + category).forEach(e => e.classList.remove(cls)); + btn.classList.remove(cls); + } + } +}; + +// Return the nth line div. +coverage.line_elt = function (n) { + return document.getElementById("t" + n)?.closest("p"); +}; + +// Set the selection. b and e are line numbers. +coverage.set_sel = function (b, e) { + // The first line selected. + coverage.sel_begin = b; + // The next line not selected. + coverage.sel_end = (e === undefined) ? b+1 : e; +}; + +coverage.to_top = function () { + coverage.set_sel(0, 1); + coverage.scroll_window(0); +}; + +coverage.to_first_chunk = function () { + coverage.set_sel(0, 1); + coverage.to_next_chunk(); +}; + +coverage.to_prev_file = function () { + window.location = document.getElementById("prevFileLink").href; +} + +coverage.to_next_file = function () { + window.location = document.getElementById("nextFileLink").href; +} + +coverage.to_index = function () { + location.href = document.getElementById("indexLink").href; +} + +coverage.show_hide_help = function () { + const helpCheck = document.getElementById("help_panel_state") + helpCheck.checked = !helpCheck.checked; +} + +// Return a string indicating what kind of chunk this line belongs to, +// or null if not a chunk. +coverage.chunk_indicator = function (line_elt) { + const classes = line_elt?.className; + if (!classes) { + return null; + } + const match = classes.match(/\bshow_\w+\b/); + if (!match) { + return null; + } + return match[0]; +}; + +coverage.to_next_chunk = function () { + const c = coverage; + + // Find the start of the next colored chunk. + var probe = c.sel_end; + var chunk_indicator, probe_line; + while (true) { + probe_line = c.line_elt(probe); + if (!probe_line) { + return; + } + chunk_indicator = c.chunk_indicator(probe_line); + if (chunk_indicator) { + break; + } + probe++; + } + + // There's a next chunk, `probe` points to it. + var begin = probe; + + // Find the end of this chunk. + var next_indicator = chunk_indicator; + while (next_indicator === chunk_indicator) { + probe++; + probe_line = c.line_elt(probe); + next_indicator = c.chunk_indicator(probe_line); + } + c.set_sel(begin, probe); + c.show_selection(); +}; + +coverage.to_prev_chunk = function () { + const c = coverage; + + // Find the end of the prev colored chunk. + var probe = c.sel_begin-1; + var probe_line = c.line_elt(probe); + if (!probe_line) { + return; + } + var chunk_indicator = c.chunk_indicator(probe_line); + while (probe > 1 && !chunk_indicator) { + probe--; + probe_line = c.line_elt(probe); + if (!probe_line) { + return; + } + chunk_indicator = c.chunk_indicator(probe_line); + } + + // There's a prev chunk, `probe` points to its last line. + var end = probe+1; + + // Find the beginning of this chunk. + var prev_indicator = chunk_indicator; + while (prev_indicator === chunk_indicator) { + probe--; + if (probe <= 0) { + return; + } + probe_line = c.line_elt(probe); + prev_indicator = c.chunk_indicator(probe_line); + } + c.set_sel(probe+1, end); + c.show_selection(); +}; + +// Returns 0, 1, or 2: how many of the two ends of the selection are on +// the screen right now? +coverage.selection_ends_on_screen = function () { + if (coverage.sel_begin === 0) { + return 0; + } + + const begin = coverage.line_elt(coverage.sel_begin); + const end = coverage.line_elt(coverage.sel_end-1); + + return ( + (checkVisible(begin) ? 1 : 0) + + (checkVisible(end) ? 1 : 0) + ); +}; + +coverage.to_next_chunk_nicely = function () { + if (coverage.selection_ends_on_screen() === 0) { + // The selection is entirely off the screen: + // Set the top line on the screen as selection. + + // This will select the top-left of the viewport + // As this is most likely the span with the line number we take the parent + const line = document.elementFromPoint(0, 0).parentElement; + if (line.parentElement !== document.getElementById("source")) { + // The element is not a source line but the header or similar + coverage.select_line_or_chunk(1); + } + else { + // We extract the line number from the id + coverage.select_line_or_chunk(parseInt(line.id.substring(1), 10)); + } + } + coverage.to_next_chunk(); +}; + +coverage.to_prev_chunk_nicely = function () { + if (coverage.selection_ends_on_screen() === 0) { + // The selection is entirely off the screen: + // Set the lowest line on the screen as selection. + + // This will select the bottom-left of the viewport + // As this is most likely the span with the line number we take the parent + const line = document.elementFromPoint(document.documentElement.clientHeight-1, 0).parentElement; + if (line.parentElement !== document.getElementById("source")) { + // The element is not a source line but the header or similar + coverage.select_line_or_chunk(coverage.lines_len); + } + else { + // We extract the line number from the id + coverage.select_line_or_chunk(parseInt(line.id.substring(1), 10)); + } + } + coverage.to_prev_chunk(); +}; + +// Select line number lineno, or if it is in a colored chunk, select the +// entire chunk +coverage.select_line_or_chunk = function (lineno) { + var c = coverage; + var probe_line = c.line_elt(lineno); + if (!probe_line) { + return; + } + var the_indicator = c.chunk_indicator(probe_line); + if (the_indicator) { + // The line is in a highlighted chunk. + // Search backward for the first line. + var probe = lineno; + var indicator = the_indicator; + while (probe > 0 && indicator === the_indicator) { + probe--; + probe_line = c.line_elt(probe); + if (!probe_line) { + break; + } + indicator = c.chunk_indicator(probe_line); + } + var begin = probe + 1; + + // Search forward for the last line. + probe = lineno; + indicator = the_indicator; + while (indicator === the_indicator) { + probe++; + probe_line = c.line_elt(probe); + indicator = c.chunk_indicator(probe_line); + } + + coverage.set_sel(begin, probe); + } + else { + coverage.set_sel(lineno); + } +}; + +coverage.show_selection = function () { + // Highlight the lines in the chunk + document.querySelectorAll("#source .highlight").forEach(e => e.classList.remove("highlight")); + for (let probe = coverage.sel_begin; probe < coverage.sel_end; probe++) { + coverage.line_elt(probe).querySelector(".n").classList.add("highlight"); + } + + coverage.scroll_to_selection(); +}; + +coverage.scroll_to_selection = function () { + // Scroll the page if the chunk isn't fully visible. + if (coverage.selection_ends_on_screen() < 2) { + const element = coverage.line_elt(coverage.sel_begin); + coverage.scroll_window(element.offsetTop - 60); + } +}; + +coverage.scroll_window = function (to_pos) { + window.scroll({top: to_pos, behavior: "smooth"}); +}; + +coverage.init_scroll_markers = function () { + // Init some variables + coverage.lines_len = document.querySelectorAll("#source > p").length; + + // Build html + coverage.build_scroll_markers(); +}; + +coverage.build_scroll_markers = function () { + const temp_scroll_marker = document.getElementById("scroll_marker") + if (temp_scroll_marker) temp_scroll_marker.remove(); + // Don't build markers if the window has no scroll bar. + if (document.body.scrollHeight <= window.innerHeight) { + return; + } + + const marker_scale = window.innerHeight / document.body.scrollHeight; + const line_height = Math.min(Math.max(3, window.innerHeight / coverage.lines_len), 10); + + let previous_line = -99, last_mark, last_top; + + const scroll_marker = document.createElement("div"); + scroll_marker.id = "scroll_marker"; + document.getElementById("source").querySelectorAll( + "p.show_run, p.show_mis, p.show_exc, p.show_exc, p.show_par" + ).forEach(element => { + const line_top = Math.floor(element.offsetTop * marker_scale); + const line_number = parseInt(element.querySelector(".n a").id.substr(1)); + + if (line_number === previous_line + 1) { + // If this solid missed block just make previous mark higher. + last_mark.style.height = `${line_top + line_height - last_top}px`; + } + else { + // Add colored line in scroll_marker block. + last_mark = document.createElement("div"); + last_mark.id = `m${line_number}`; + last_mark.classList.add("marker"); + last_mark.style.height = `${line_height}px`; + last_mark.style.top = `${line_top}px`; + scroll_marker.append(last_mark); + last_top = line_top; + } + + previous_line = line_number; + }); + + // Append last to prevent layout calculation + document.body.append(scroll_marker); +}; + +coverage.wire_up_sticky_header = function () { + const header = document.querySelector("header"); + const header_bottom = ( + header.querySelector(".content h2").getBoundingClientRect().top - + header.getBoundingClientRect().top + ); + + function updateHeader() { + if (window.scrollY > header_bottom) { + header.classList.add("sticky"); + } + else { + header.classList.remove("sticky"); + } + } + + window.addEventListener("scroll", updateHeader); + updateHeader(); +}; + +coverage.expand_contexts = function (e) { + var ctxs = e.target.parentNode.querySelector(".ctxs"); + + if (!ctxs.classList.contains("expanded")) { + var ctxs_text = ctxs.textContent; + var width = Number(ctxs_text[0]); + ctxs.textContent = ""; + for (var i = 1; i < ctxs_text.length; i += width) { + key = ctxs_text.substring(i, i + width).trim(); + ctxs.appendChild(document.createTextNode(contexts[key])); + ctxs.appendChild(document.createElement("br")); + } + ctxs.classList.add("expanded"); + } +}; + +document.addEventListener("DOMContentLoaded", () => { + if (document.body.classList.contains("indexfile")) { + coverage.index_ready(); + } + else { + coverage.pyfile_ready(); + } +}); diff --git a/test-results/coverage-final/favicon_32_cb_58284776.png b/test-results/coverage-final/favicon_32_cb_58284776.png new file mode 100644 index 0000000000000000000000000000000000000000..3516789c0c2caef030c1f67b7abacfb3cb3126b4 GIT binary patch literal 1730 zcmV;z20i(SP)+ +
++ + + +File +class +statements +missing +excluded +branches +partial +coverage ++ +src/radios/models.py +CommaSeparatedString +2 +1 +0 +0 +0 +50% ++ +src/radios/models.py +Station +3 +3 +0 +2 +0 +0% ++ +src/radios/models.py +Country +1 +1 +0 +0 +0 +0% ++ +src/radios/models.py +Language +3 +3 +0 +2 +0 +0% ++ + + +src/radios/radio_browser.py +RadioBrowser +75 +0 +0 +34 +4 +96% ++ + +Total ++ 195 +8 +0 +38 +4 +93% ++ No items found using the specified filter. +
+4 classes skipped due to complete coverage.
+9D>00RI}OjJbx00000 z00000GBq$$Qd2uYHXIxp6%!Nz000310RR9100000005kwo*W7s9vK}P9RvXa5DX6h z003WKUtV5cLrOkRSV$ut7-MZ)W@TnDH7r|OTu4wuMod3SNlQFBJQxcJ1_T5E00000 z0000000000004A>YGrU-TW3^XX;?QO8CG9TU0hu#6cIc-JtiY04+I4S0s{a50RR90 z=l|5||JEAdSQz73SgXDj;aL0o`|bbN +9U~%FpJ%Q=_*X z;#m#hSNZt(=jP_$_srPv#>B+L#M-r{xR|1}m7lVbnyihGqKDu8THO0t8{JlbN;`T- zI(9@iaziy-H7fP<^Wyr?((1y?;=4_mthC6bfRB@%u#lLfiHn *vO_!;+%cr8Grn1GNM~t6DhnGNskv?{WJc)rf zYIlW?c6)thCYo5*^HmbjQ4`EiTVqfd!%Y*xOBb0uG;umiD B5s=b_+mzj2rl%TVVoT-P5lZTO r?8+@jhsb`oS3bdMUIwXiIkh9lR=M;OMs40fQ(3bhme7Na(R19ae8WY zd4ZmIkdk ~g;bzW+3Gm>qHfN61tXl;38FIQq?lwfIlU{If1Dw12&_*$~_S)A`# zl QBY7(E6`BK;!h#0P9K|24a-eQ zg-pKLOM8n;t |>< zot1NLE-D)Q-?Xoej70wa`1khi>*C yP7 z00TZrL_t(I%VK~7CT>mv1r`wz7DFXYZYBl{pv*4Ao9i57W8*owy A;^O)ufkm5X$l24v$LYJA|taE84>cr@?CIg8>iXfSyADc5!rmgaQ*U~ zP}!W`q$yMG{>ln}ml+9E!3edV8LB@gY4-$sH~aEaKfkOEkBEwhR#XEk5GnvmJC*D& zva+&Ds3 3w)2IT*k10eZsd$(=pnmsHnEG#TL@Ea0V(Usa#jIy)UV<&N4mSI&9U7 ?c z=Vcl*bD8D6w-(lE%U0Z3zWR5=%1O39Vho}-rl!7oc5MK;B>0iXypN5R7S`_WX)P_* ztwCnN5&!`eI48}S)eH9OS&u6h?te~)IMUK`b+W_rH4H4C>#M6vz+t(y+4}PNkc@8& zEI}%))BhySs1;){aCV*yj%yp=n;sSyLqjrdy;))n)W2ZWnZnyCtRQcKK}Y}6h1T=u zhSo1~O}zef<)_xR6Y<9nP2`6LR7cLHgNrRa=7om5nrdtA?GO;;?`Joy) vjng!Grr%H1%FtPb|PIs^~b16Rk@)FPm)BFPc<73Uu z&GP~aXQZ&HGcYi+OpiA=Gcz-HIs7c->LOQLyFCA(fQgQY0YUMSjG+7gm|&`{83>p= zUaNm{1jI0NaSb?G<6sxa&ICzv`Q{K6Q!`!{LYZccJ}!RDs*ps oR zx3hBy_IEV*o)jp_4zVARw;9=VgB{|$?OaN0f;Cv#5SbUDgo}fpRlKQ5Tv~~POC2r@ Y059?-JLr>-3IG5A07*qoM6N<$g7d!_7ytkO literal 0 HcmV?d00001 diff --git a/test-results/coverage-final/function_index.html b/test-results/coverage-final/function_index.html new file mode 100644 index 00000000..decfaef2 --- /dev/null +++ b/test-results/coverage-final/function_index.html @@ -0,0 +1,194 @@ + + + + + Coverage report + + + + + ++ +++Coverage report: + 93% +
+ + ++ Files + Functions + Classes +
++ coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
++ + + + diff --git a/test-results/coverage-final/index.html b/test-results/coverage-final/index.html new file mode 100644 index 00000000..f65906cc --- /dev/null +++ b/test-results/coverage-final/index.html @@ -0,0 +1,129 @@ + + + + ++ +
++ + + +File +function +statements +missing +excluded +branches +partial +coverage ++ +src/radios/models.py +CommaSeparatedString.serialize +1 +1 +0 +0 +0 +0% ++ +src/radios/models.py +Station.country +3 +3 +0 +2 +0 +0% ++ +src/radios/models.py +Country.favicon +1 +1 +0 +0 +0 +0% ++ +src/radios/models.py +Language.favicon +3 +3 +0 +2 +0 +0% ++ +src/radios/radio_browser.py +RadioBrowser._request +29 +0 +0 +12 +1 +98% ++ +src/radios/radio_browser.py +RadioBrowser.countries +11 +0 +0 +8 +1 +95% ++ +src/radios/radio_browser.py +RadioBrowser.search +8 +0 +0 +4 +1 +92% ++ + + +src/radios/radio_browser.py +RadioBrowser.stations +8 +0 +0 +4 +1 +92% ++ + +Total ++ 195 +8 +0 +38 +4 +93% ++ No items found using the specified filter. +
+11 functions skipped due to complete coverage.
+Coverage report + + + + + ++ +++Coverage report: + 94% +
+ + ++ Files + Functions + Classes +
++ coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
++ + + + diff --git a/test-results/coverage-final/keybd_closed_cb_ce680311.png b/test-results/coverage-final/keybd_closed_cb_ce680311.png new file mode 100644 index 0000000000000000000000000000000000000000..9c5dc188f8fe076cf0ee3573f4d8d3fb6ea04f85 GIT binary patch literal 9003 zcmeHLc{tSF+aIY=A^R4_poB4tZAN2XC;O7M(inrW3}(h&Q4}dl*&-65$i9^&vW6_# zcM4g`Qix=GhkBl;=lwnJ@Ap2}^}hc-b6vBXb3XUyzR%~}_c`-Dw+!?&k8mFW008u8 zEj1&`Hyh=BjP@Yq^VDkvJph2|hOdb^*$CqWbR)Xj;hk|nvX2`Mi1WtV0RY}Z3kepU zJZB2kcVVI2DycL#13hyRYIv?L&+ +
++ + + +File +statements +missing +excluded +branches +partial +coverage ++ +src/radios/models.py +84 +8 +0 +4 +0 +86% ++ + + +src/radios/radio_browser.py +111 +0 +0 +34 +4 +97% ++ + +Total +240 +8 +0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mwpck03MGb;ZFm=qJr3eVu-_lpTNgRXY$(c7E(G?> zVEg@)$;hb^aTu~I(Zto&Sst_(EO3u g-CqKVjz5O54j6(x zj ?Bt^ zvKNMkQ?{q%0A-yiwY9&_K#?Emclyu4csbzqa*IL-hDw29k|uCTIjE$ZB&FJ< lGEY@$y^FQEzvHzK<|H=GU z*bi$}S2rI@B|DJyy$Ju-{a*loFzDd1I0DJ_--Z4w TQXa?;*l2620d|8UTB|87IyWr~5&&?NW$#S|NJ!+QbkdN~y6Q9^ z4l+ body { font-size: 16px; } + +a:active, a:focus { outline: 2px dashed #007acc; } + +p { font-size: .875em; line-height: 1.4em; } + +table { border-collapse: collapse; } + +td { vertical-align: top; } + +table tr.hidden { display: none !important; } + +p#no_rows { display: none; font-size: 1.15em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + +a.nav { text-decoration: none; color: inherit; } + +a.nav:hover { text-decoration: underline; color: inherit; } + +.hidden { display: none; } + +header { background: #f8f8f8; width: 100%; z-index: 2; border-bottom: 1px solid #ccc; } + +@media (prefers-color-scheme: dark) { header { background: black; } } + +@media (prefers-color-scheme: dark) { header { border-color: #333; } } + +header .content { padding: 1rem 3.5rem; } + +header h2 { margin-top: .5em; font-size: 1em; } + +header h2 a.button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; } + +@media (prefers-color-scheme: dark) { header h2 a.button { background: #333; } } + +@media (prefers-color-scheme: dark) { header h2 a.button { border-color: #444; } } + +header h2 a.button.current { border: 2px solid; background: #fff; border-color: #999; cursor: default; } + +@media (prefers-color-scheme: dark) { header h2 a.button.current { background: #1e1e1e; } } + +@media (prefers-color-scheme: dark) { header h2 a.button.current { border-color: #777; } } + +header p.text { margin: .5em 0 -.5em; color: #666; font-style: italic; } + +@media (prefers-color-scheme: dark) { header p.text { color: #aaa; } } + +header.sticky { position: fixed; left: 0; right: 0; height: 2.5em; } + +header.sticky .text { display: none; } + +header.sticky h1, header.sticky h2 { font-size: 1em; margin-top: 0; display: inline-block; } + +header.sticky .content { padding: 0.5rem 3.5rem; } + +header.sticky .content p { font-size: 1em; } + +header.sticky ~ #source { padding-top: 6.5em; } + +main { position: relative; z-index: 1; } + +footer { margin: 1rem 3.5rem; } + +footer .content { padding: 0; color: #666; font-style: italic; } + +@media (prefers-color-scheme: dark) { footer .content { color: #aaa; } } + +#index { margin: 1rem 0 0 3.5rem; } + +h1 { font-size: 1.25em; display: inline-block; } + +#filter_container { float: right; margin: 0 2em 0 0; line-height: 1.66em; } + +#filter_container #filter { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; } + +@media (prefers-color-scheme: dark) { #filter_container #filter { border-color: #444; } } + +@media (prefers-color-scheme: dark) { #filter_container #filter { background: #1e1e1e; } } + +@media (prefers-color-scheme: dark) { #filter_container #filter { color: #eee; } } + +#filter_container #filter:focus { border-color: #007acc; } + +#filter_container :disabled ~ label { color: #ccc; } + +@media (prefers-color-scheme: dark) { #filter_container :disabled ~ label { color: #444; } } + +#filter_container label { font-size: .875em; color: #666; } + +@media (prefers-color-scheme: dark) { #filter_container label { color: #aaa; } } + +header button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; } + +@media (prefers-color-scheme: dark) { header button { background: #333; } } + +@media (prefers-color-scheme: dark) { header button { border-color: #444; } } + +header button:active, header button:focus { outline: 2px dashed #007acc; } + +header button.run { background: #eeffee; } + +@media (prefers-color-scheme: dark) { header button.run { background: #373d29; } } + +header button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.run.show_run { background: #373d29; } } + +header button.mis { background: #ffeeee; } + +@media (prefers-color-scheme: dark) { header button.mis { background: #4b1818; } } + +header button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.mis.show_mis { background: #4b1818; } } + +header button.exc { background: #f7f7f7; } + +@media (prefers-color-scheme: dark) { header button.exc { background: #333; } } + +header button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.exc.show_exc { background: #333; } } + +header button.par { background: #ffffd5; } + +@media (prefers-color-scheme: dark) { header button.par { background: #650; } } + +header button.par.show_par { background: #ffa; border: 2px solid #bbbb00; margin: 0 .1em; } + +@media (prefers-color-scheme: dark) { header button.par.show_par { background: #650; } } + +#help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; } + +#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; } + +#help_panel_wrapper { float: right; position: relative; } + +#keyboard_icon { margin: 5px; } + +#help_panel_state { display: none; } + +#help_panel { top: 25px; right: 0; padding: .75em; border: 1px solid #883; color: #333; } + +#help_panel .keyhelp p { margin-top: .75em; } + +#help_panel .legend { font-style: italic; margin-bottom: 1em; } + +.indexfile #help_panel { width: 25em; } + +.pyfile #help_panel { width: 18em; } + +#help_panel_state:checked ~ #help_panel { display: block; } + +kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; border-radius: 3px; } + +#source { padding: 1em 0 1em 3.5rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; } + +#source p { position: relative; white-space: pre; } + +#source p * { box-sizing: border-box; } + +#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; } + +@media (prefers-color-scheme: dark) { #source p .n { color: #777; } } + +#source p .n.highlight { background: #ffdd00; } + +#source p .n a { scroll-margin-top: 6em; text-decoration: none; color: #999; } + +@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } } + +#source p .n a:hover { text-decoration: underline; color: #999; } + +@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } } + +#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; } + +@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } } + +#source p .t:hover { background: #f2f2f2; } + +@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } } + +#source p .t:hover ~ .r .annotate.long { display: block; } + +#source p .t .com { color: #008000; font-style: italic; line-height: 1px; } + +@media (prefers-color-scheme: dark) { #source p .t .com { color: #6a9955; } } + +#source p .t .key { font-weight: bold; line-height: 1px; } + +#source p .t .str { color: #0451a5; } + +@media (prefers-color-scheme: dark) { #source p .t .str { color: #9cdcfe; } } + +#source p.mis .t { border-left: 0.2em solid #ff0000; } + +#source p.mis.show_mis .t { background: #fdd; } + +@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } } + +#source p.mis.show_mis .t:hover { background: #f2d2d2; } + +@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } } + +#source p.run .t { border-left: 0.2em solid #00dd00; } + +#source p.run.show_run .t { background: #dfd; } + +@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } } + +#source p.run.show_run .t:hover { background: #d2f2d2; } + +@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } } + +#source p.exc .t { border-left: 0.2em solid #808080; } + +#source p.exc.show_exc .t { background: #eee; } + +@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } } + +#source p.exc.show_exc .t:hover { background: #e2e2e2; } + +@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } } + +#source p.par .t { border-left: 0.2em solid #bbbb00; } + +#source p.par.show_par .t { background: #ffa; } + +@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } } + +#source p.par.show_par .t:hover { background: #f2f2a2; } + +@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } } + +#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + +#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; color: #666; padding-right: .5em; } + +@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } } + +#source p .annotate.short:hover ~ .long { display: block; } + +#source p .annotate.long { width: 30em; right: 2.5em; } + +#source p input { display: none; } + +#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; } + +#source p input ~ .r label.ctx::before { content: "▶ "; } + +#source p input ~ .r label.ctx:hover { background: #e8f4ff; color: #666; } + +@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { background: #0f3a42; } } + +@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { color: #aaa; } } + +#source p input:checked ~ .r label.ctx { background: #d0e8ff; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; } + +@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { background: #056; } } + +@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { color: #aaa; } } + +#source p input:checked ~ .r label.ctx::before { content: "▼ "; } + +#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; } + +#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; } + +@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } } + +#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; white-space: nowrap; background: #d0e8ff; border-radius: .25em; margin-right: 1.75em; text-align: right; } + +@media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } } + +#index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; } + +#index table.index { margin-left: -.5em; } + +#index td, #index th { text-align: right; padding: .25em .5em; border-bottom: 1px solid #eee; } + +@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } } + +#index td.name, #index th.name { text-align: left; width: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; min-width: 15em; } + +#index th { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-style: italic; color: #333; cursor: pointer; } + +@media (prefers-color-scheme: dark) { #index th { color: #ddd; } } + +#index th:hover { background: #eee; } + +@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } } + +#index th .arrows { color: #666; font-size: 85%; font-family: sans-serif; font-style: normal; pointer-events: none; } + +#index th[aria-sort="ascending"], #index th[aria-sort="descending"] { white-space: nowrap; background: #eee; padding-left: .5em; } + +@media (prefers-color-scheme: dark) { #index th[aria-sort="ascending"], #index th[aria-sort="descending"] { background: #333; } } + +#index th[aria-sort="ascending"] .arrows::after { content: " ▲"; } + +#index th[aria-sort="descending"] .arrows::after { content: " ▼"; } + +#index td.name { font-size: 1.15em; } + +#index td.name a { text-decoration: none; color: inherit; } + +#index td.name .no-noun { font-style: italic; } + +#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; } + +#index tr.region:hover { background: #eee; } + +@media (prefers-color-scheme: dark) { #index tr.region:hover { background: #333; } } + +#index tr.region:hover td.name { text-decoration: underline; color: inherit; } + +#scroll_marker { position: fixed; z-index: 3; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; } + +@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } } + +@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } } + +#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; } + +@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } } diff --git a/test-results/coverage-final/z_a44f0ac069e85531___init___py.html b/test-results/coverage-final/z_a44f0ac069e85531___init___py.html new file mode 100644 index 00000000..21efb1ef --- /dev/null +++ b/test-results/coverage-final/z_a44f0ac069e85531___init___py.html @@ -0,0 +1,108 @@ + + + + + Coverage for tests/__init__.py: 50% + + + + + ++ ++++ Coverage for tests/__init__.py: + 50% +
+ ++ 4 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:18 +0000 +
+ ++ + + + diff --git a/test-results/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html b/test-results/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html new file mode 100644 index 00000000..a6def87e --- /dev/null +++ b/test-results/coverage-final/z_a44f0ac069e85531_test_radio_browser_py.html @@ -0,0 +1,922 @@ + + + + +1"""Asynchronous Python client for the Radio Browser API."""
+ +3from pathlib import Path
+ + +6def load_fixture(filename: str) -> str:
+7 """Load a fixture."""
+8 path = Path(__package__) / "fixtures" / filename
+9 return path.read_text(encoding="utf-8")
+Coverage for tests/test_radio_browser.py: 99% + + + + + ++ ++++ Coverage for tests/test_radio_browser.py: + 99% +
+ ++ 292 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:18 +0000 +
+ ++ + + + diff --git a/test-results/coverage-final/z_c8b1f7e3f131828c_models_py.html b/test-results/coverage-final/z_c8b1f7e3f131828c_models_py.html new file mode 100644 index 00000000..513b2e8d --- /dev/null +++ b/test-results/coverage-final/z_c8b1f7e3f131828c_models_py.html @@ -0,0 +1,259 @@ + + + + +1import asyncio
+2import socket
+3from unittest.mock import AsyncMock, MagicMock, patch
+ +5import aiohttp
+6import orjson
+7import pytest
+8from aiodns.error import DNSError
+9from awesomeversion import AwesomeVersion
+ +11from radios.const import FilterBy, Order
+12from radios.exceptions import (
+13 RadioBrowserConnectionError,
+14 RadioBrowserConnectionTimeoutError,
+15 RadioBrowserError,
+16)
+17from radios.models import Country, Language, Station, Stats, Tag
+18from radios.radio_browser import RadioBrowser
+ + +21@pytest.fixture
+22def radio_browser():
+23 """Return a RadioBrowser instance."""
+24 return RadioBrowser(user_agent="Test/1.0")
+ + +27@pytest.fixture
+28def mock_session():
+29 """Return a mocked aiohttp ClientSession."""
+30 session = AsyncMock()
+31 response = AsyncMock()
+32 response.status = 200
+33 response.headers = {"Content-Type": "application/json"}
+34 response.text = AsyncMock(return_value='{"test": "data"}')
+35 session.request.return_value = response
+36 return session
+ + +39@pytest.fixture
+40def mock_dns_resolver():
+41 """Return a mocked DNSResolver."""
+42 resolver = AsyncMock()
+43 result = [MagicMock(host="api.radio-browser.info")]
+44 resolver.query.return_value = result
+45 return resolver
+ + +48class TestRadioBrowser:
+49 """Tests for the RadioBrowser class."""
+ +51 @pytest.mark.asyncio
+52 async def test_request_dns_resolution(self, radio_browser, mock_session):
+53 """Test that _request resolves DNS when host is None."""
+54 radio_browser.session = mock_session
+55 radio_browser._host = None
+ +57 with patch("radios.radio_browser.DNSResolver") as mock_resolver_class:
+58 mock_resolver = AsyncMock()
+59 mock_result = [MagicMock(host="api.radio-browser.info")]
+60 mock_resolver.query.return_value = mock_result
+61 mock_resolver_class.return_value = mock_resolver
+ +63 await radio_browser._request("test")
+ +65 mock_resolver.query.assert_called_once_with(
+66 "_api._tcp.radio-browser.info", "SRV"
+67 )
+68 assert radio_browser._host == "api.radio-browser.info"
+ +70 @pytest.mark.asyncio
+71 async def test_request_creates_session_if_none(self, radio_browser):
+72 """Test that _request creates a session if none exists."""
+73 radio_browser._host = "api.radio-browser.info"
+74 radio_browser.session = None
+ +76 with patch("radios.radio_browser.aiohttp.ClientSession") as mock_session_class:
+77 mock_session = AsyncMock()
+78 mock_response = AsyncMock()
+79 mock_response.status = 200
+80 mock_response.headers = {"Content-Type": "application/json"}
+81 mock_response.text = AsyncMock(return_value='{"test": "data"}')
+82 mock_session.request.return_value = mock_response
+83 mock_session_class.return_value = mock_session
+ +85 await radio_browser._request("test")
+ +87 mock_session_class.assert_called_once()
+88 assert radio_browser.session is not None
+89 assert radio_browser._close_session is True
+ +91 @pytest.mark.asyncio
+92 async def test_request_timeout(self, radio_browser, mock_session):
+93 """Test that _request raises RadioBrowserConnectionTimeoutError on timeout."""
+94 radio_browser.session = mock_session
+95 radio_browser._host = "api.radio-browser.info"
+96 mock_session.request.side_effect = asyncio.TimeoutError()
+ +98 with pytest.raises(RadioBrowserConnectionTimeoutError):
+99 await radio_browser._request("test")
+ +101 assert radio_browser._host is None
+ +103 @pytest.mark.asyncio
+104 async def test_request_connection_error(self, radio_browser, mock_session):
+105 """Test that _request raises RadioBrowserConnectionError on connection error."""
+106 radio_browser.session = mock_session
+107 radio_browser._host = "api.radio-browser.info"
+108 mock_session.request.side_effect = aiohttp.ClientError()
+ +110 with pytest.raises(RadioBrowserConnectionError):
+111 await radio_browser._request("test")
+ +113 assert radio_browser._host is None
+ +115 @pytest.mark.asyncio
+116 async def test_request_socket_error(self, radio_browser, mock_session):
+117 """Test that _request raises RadioBrowserConnectionError on socket error."""
+118 radio_browser.session = mock_session
+119 radio_browser._host = "api.radio-browser.info"
+120 mock_session.request.side_effect = socket.gaierror()
+ +122 with pytest.raises(RadioBrowserConnectionError):
+123 await radio_browser._request("test")
+ +125 assert radio_browser._host is None
+ +127 @pytest.mark.asyncio
+128 async def test_request_invalid_content_type(self, radio_browser, mock_session):
+129 """Test that _request raises RadioBrowserError on invalid content type."""
+130 radio_browser.session = mock_session
+131 radio_browser._host = "api.radio-browser.info"
+132 mock_response = AsyncMock()
+133 mock_response.status = 200
+134 mock_response.headers = {"Content-Type": "text/plain"}
+135 mock_response.text = AsyncMock(return_value="Not JSON")
+136 mock_session.request.return_value = mock_response
+ +138 with pytest.raises(RadioBrowserError):
+139 await radio_browser._request("test")
+ +141 @pytest.mark.asyncio
+142 async def test_request_boolean_params(self, radio_browser, mock_session):
+143 """Test that _request converts boolean params to lowercase strings."""
+144 radio_browser.session = mock_session
+145 radio_browser._host = "api.radio-browser.info"
+ +147 await radio_browser._request("test", params={"bool_param": True})
+ +149 mock_session.request.assert_called_once()
+150 call_args = mock_session.request.call_args[1]
+151 assert call_args["params"]["bool_param"] == "true"
+ +153 @pytest.mark.asyncio
+154 async def test_stats(self, radio_browser):
+155 """Test the stats method."""
+156 stats_data = {
+157 "supported_version": 1,
+158 "software_version": "1.0.0",
+159 "status": "OK",
+160 "stations": 1000,
+161 "stations_broken": 10,
+162 "tags": 500,
+163 "clicks_last_hour": 100,
+164 "clicks_last_day": 1000,
+165 "languages": 50,
+166 "countries": 100,
+167 }
+168 stats_json = orjson.dumps(stats_data)
+ +170 with patch.object(
+171 radio_browser, "_request", AsyncMock(return_value=stats_json)
+172 ):
+173 result = await radio_browser.stats()
+ +175 radio_browser._request.assert_called_once_with("stats")
+176 assert isinstance(result, Stats)
+177 assert result.supported_version == 1
+178 assert result.software_version == AwesomeVersion("1.0.0")
+179 assert result.status == "OK"
+180 assert result.stations == 1000
+181 assert result.stations_broken == 10
+182 assert result.tags == 500
+183 assert result.clicks_last_hour == 100
+184 assert result.clicks_last_day == 1000
+185 assert result.languages == 50
+186 assert result.countries == 100
+ +188 @pytest.mark.asyncio
+189 async def test_station_click(self, radio_browser):
+190 """Test the station_click method."""
+191 with patch.object(radio_browser, "_request", AsyncMock()):
+192 await radio_browser.station_click(uuid="test-uuid")
+ +194 radio_browser._request.assert_called_once_with("url/test-uuid")
+ +196 @pytest.mark.asyncio
+197 async def test_countries(self, radio_browser):
+198 """Test the countries method."""
+199 countries_data = [
+200 {"name": "US", "stationcount": "100"},
+201 {"name": "GB", "stationcount": "50"},
+202 {"name": "XK", "stationcount": "10"}, # Kosovo special case
+203 ]
+204 countries_json = orjson.dumps(countries_data)
+ +206 with patch.object(
+207 radio_browser, "_request", AsyncMock(return_value=countries_json)
+208 ):
+209 result = await radio_browser.countries()
+ +211 radio_browser._request.assert_called_once_with(
+212 "countrycodes",
+213 params={
+214 "hidebroken": False,
+215 "limit": 100000,
+216 "offset": 0,
+217 "order": "name",
+218 "reverse": False,
+219 },
+220 )
+221 assert isinstance(result, list)
+222 assert len(result) == 3
+223 assert all(isinstance(country, Country) for country in result)
+ +225 # Check Kosovo special case
+226 kosovo = next(c for c in result if c.code == "XK")
+227 assert kosovo.name == "Kosovo"
+ +229 # Check country name resolution
+230 us = next(c for c in result if c.code == "US")
+231 assert us.name == "United States"
+ +233 @pytest.mark.asyncio
+234 async def test_countries_with_parameters(self, radio_browser):
+235 """Test the countries method with custom parameters."""
+236 countries_data = [{"name": "US", "stationcount": "100"}]
+237 countries_json = orjson.dumps(countries_data)
+ +239 with patch.object(
+240 radio_browser, "_request", AsyncMock(return_value=countries_json)
+241 ):
+242 result = await radio_browser.countries(
+243 hide_broken=True,
+244 limit=10,
+245 offset=5,
+246 order=Order.STATION_COUNT,
+247 reverse=True,
+248 )
+ +250 radio_browser._request.assert_called_once_with(
+251 "countrycodes",
+252 params={
+253 "hidebroken": True,
+254 "limit": 10,
+255 "offset": 5,
+256 "order": "stationcount",
+257 "reverse": True,
+258 },
+259 )
+260 assert len(result) == 1
+ +262 @pytest.mark.asyncio
+263 async def test_languages(self, radio_browser):
+264 """Test the languages method."""
+265 languages_data = [
+266 {"name": "english", "stationcount": "100", "iso_639": "en"},
+267 {"name": "spanish", "stationcount": "50", "iso_639": "es"},
+268 ]
+269 languages_json = orjson.dumps(languages_data)
+ +271 with patch.object(
+272 radio_browser, "_request", AsyncMock(return_value=languages_json)
+273 ):
+274 result = await radio_browser.languages()
+ +276 radio_browser._request.assert_called_once_with(
+277 "languages",
+278 params={
+279 "hidebroken": False,
+280 "limit": 100000,
+281 "offset": 0,
+282 "order": "name",
+283 "reverse": False,
+284 },
+285 )
+286 assert isinstance(result, list)
+287 assert len(result) == 2
+288 assert all(isinstance(language, Language) for language in result)
+ +290 # Check title case conversion
+291 english = next(l for l in result if l.code == "en")
+292 assert english.name == "English"
+ +294 @pytest.mark.asyncio
+295 async def test_languages_with_parameters(self, radio_browser):
+296 """Test the languages method with custom parameters."""
+297 languages_data = [{"name": "english", "stationcount": "100", "iso_639": "en"}]
+298 languages_json = orjson.dumps(languages_data)
+ +300 with patch.object(
+301 radio_browser, "_request", AsyncMock(return_value=languages_json)
+302 ):
+303 result = await radio_browser.languages(
+304 hide_broken=True,
+305 limit=10,
+306 offset=5,
+307 order=Order.STATION_COUNT,
+308 reverse=True,
+309 )
+ +311 radio_browser._request.assert_called_once_with(
+312 "languages",
+313 params={
+314 "hidebroken": True,
+315 "limit": 10,
+316 "offset": 5,
+317 "order": "stationcount",
+318 "reverse": True,
+319 },
+320 )
+321 assert len(result) == 1
+ +323 @pytest.mark.asyncio
+324 async def test_search(self, radio_browser):
+325 """Test the search method."""
+326 stations_data = [
+327 {
+328 "bitrate": 128,
+329 "changeuuid": "change-uuid",
+330 "clickcount": 100,
+331 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+332 "clicktrend": 1,
+333 "codec": "MP3",
+334 "countrycode": "US",
+335 "favicon": "https://example.com/favicon.ico",
+336 "geo_lat": 37.7749,
+337 "geo_long": -122.4194,
+338 "has_extended_info": True,
+339 "hls": False,
+340 "homepage": "https://example.com",
+341 "iso_3166_2": "US-CA",
+342 "language": "English",
+343 "languagecodes": "en",
+344 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+345 "lastcheckok": True,
+346 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+347 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+348 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+349 "name": "Test Station",
+350 "ssl_error": 0,
+351 "state": "California",
+352 "stationuuid": "station-uuid",
+353 "tags": "rock,pop",
+354 "url_resolved": "https://example.com/stream",
+355 "url": "https://example.com/stream",
+356 "votes": 50,
+357 }
+358 ]
+359 stations_json = orjson.dumps(stations_data)
+ +361 with patch.object(
+362 radio_browser, "_request", AsyncMock(return_value=stations_json)
+363 ):
+364 result = await radio_browser.search(name="Test")
+ +366 radio_browser._request.assert_called_once_with(
+367 "stations/search",
+368 params={
+369 "hidebroken": False,
+370 "limit": 100000,
+371 "offset": 0,
+372 "order": "name",
+373 "reverse": False,
+374 "name": "Test",
+375 "name_exact": False,
+376 "country": "",
+377 "country_exact": False,
+378 "state_exact": False,
+379 "language_exact": False,
+380 "tag_exact": False,
+381 "bitrate_min": 0,
+382 "bitrate_max": 1000000,
+383 },
+384 )
+385 assert isinstance(result, list)
+386 assert len(result) == 1
+387 assert all(isinstance(station, Station) for station in result)
+388 assert result[0].name == "Test Station"
+ +390 @pytest.mark.asyncio
+391 async def test_search_with_filter(self, radio_browser):
+392 """Test the search method with filter parameters."""
+393 stations_data = [
+394 {
+395 "bitrate": 128,
+396 "changeuuid": "change-uuid",
+397 "clickcount": 100,
+398 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+399 "clicktrend": 1,
+400 "codec": "MP3",
+401 "countrycode": "US",
+402 "favicon": "https://example.com/favicon.ico",
+403 "geo_lat": 37.7749,
+404 "geo_long": -122.4194,
+405 "has_extended_info": True,
+406 "hls": False,
+407 "homepage": "https://example.com",
+408 "iso_3166_2": "US-CA",
+409 "language": "English",
+410 "languagecodes": "en",
+411 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+412 "lastcheckok": True,
+413 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+414 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+415 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+416 "name": "Test Station",
+417 "ssl_error": 0,
+418 "state": "California",
+419 "stationuuid": "station-uuid",
+420 "tags": "rock,pop",
+421 "url_resolved": "https://example.com/stream",
+422 "url": "https://example.com/stream",
+423 "votes": 50,
+424 }
+425 ]
+426 stations_json = orjson.dumps(stations_data)
+ +428 with patch.object(
+429 radio_browser, "_request", AsyncMock(return_value=stations_json)
+430 ):
+431 result = await radio_browser.search(
+432 filter_by=FilterBy.COUNTRY,
+433 filter_term="US",
+434 hide_broken=True,
+435 limit=10,
+436 offset=5,
+437 order=Order.BITRATE,
+438 reverse=True,
+439 name_exact=True,
+440 country_exact=True,
+441 state_exact=True,
+442 language_exact=True,
+443 tag_exact=True,
+444 bitrate_min=128,
+445 bitrate_max=320,
+446 )
+ +448 radio_browser._request.assert_called_once_with(
+449 "stations/search/bycountry/US",
+450 params={
+451 "hidebroken": True,
+452 "limit": 10,
+453 "offset": 5,
+454 "order": "bitrate",
+455 "reverse": True,
+456 "name": None,
+457 "name_exact": True,
+458 "country": "",
+459 "country_exact": True,
+460 "state_exact": True,
+461 "language_exact": True,
+462 "tag_exact": True,
+463 "bitrate_min": 128,
+464 "bitrate_max": 320,
+465 },
+466 )
+467 assert len(result) == 1
+ +469 @pytest.mark.asyncio
+470 async def test_station(self, radio_browser):
+471 """Test the station method."""
+472 stations_data = [
+473 {
+474 "bitrate": 128,
+475 "changeuuid": "change-uuid",
+476 "clickcount": 100,
+477 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+478 "clicktrend": 1,
+479 "codec": "MP3",
+480 "countrycode": "US",
+481 "favicon": "https://example.com/favicon.ico",
+482 "geo_lat": 37.7749,
+483 "geo_long": -122.4194,
+484 "has_extended_info": True,
+485 "hls": False,
+486 "homepage": "https://example.com",
+487 "iso_3166_2": "US-CA",
+488 "language": "English",
+489 "languagecodes": "en",
+490 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+491 "lastcheckok": True,
+492 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+493 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+494 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+495 "name": "Test Station",
+496 "ssl_error": 0,
+497 "state": "California",
+498 "stationuuid": "station-uuid",
+499 "tags": "rock,pop",
+500 "url_resolved": "https://example.com/stream",
+501 "url": "https://example.com/stream",
+502 "votes": 50,
+503 }
+504 ]
+505 stations_json = orjson.dumps(stations_data)
+ +507 with patch.object(
+508 radio_browser, "_request", AsyncMock(return_value=stations_json)
+509 ):
+510 result = await radio_browser.station(uuid="station-uuid")
+ +512 assert isinstance(result, Station)
+513 assert result.uuid == "station-uuid"
+514 assert result.name == "Test Station"
+ +516 @pytest.mark.asyncio
+517 async def test_station_not_found(self, radio_browser):
+518 """Test the station method when station is not found."""
+519 with patch.object(radio_browser, "_request", AsyncMock(return_value="[]")):
+520 result = await radio_browser.station(uuid="non-existent-uuid")
+ +522 assert result is None
+ +524 @pytest.mark.asyncio
+525 async def test_stations(self, radio_browser):
+526 """Test the stations method."""
+527 stations_data = [
+528 {
+529 "bitrate": 128,
+530 "changeuuid": "change-uuid",
+531 "clickcount": 100,
+532 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+533 "clicktrend": 1,
+534 "codec": "MP3",
+535 "countrycode": "US",
+536 "favicon": "https://example.com/favicon.ico",
+537 "geo_lat": 37.7749,
+538 "geo_long": -122.4194,
+539 "has_extended_info": True,
+540 "hls": False,
+541 "homepage": "https://example.com",
+542 "iso_3166_2": "US-CA",
+543 "language": "English",
+544 "languagecodes": "en",
+545 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+546 "lastcheckok": True,
+547 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+548 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+549 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+550 "name": "Test Station",
+551 "ssl_error": 0,
+552 "state": "California",
+553 "stationuuid": "station-uuid",
+554 "tags": "rock,pop",
+555 "url_resolved": "https://example.com/stream",
+556 "url": "https://example.com/stream",
+557 "votes": 50,
+558 }
+559 ]
+560 stations_json = orjson.dumps(stations_data)
+ +562 with patch.object(
+563 radio_browser, "_request", AsyncMock(return_value=stations_json)
+564 ):
+565 result = await radio_browser.stations()
+ +567 radio_browser._request.assert_called_once_with(
+568 "stations",
+569 params={
+570 "hidebroken": False,
+571 "limit": 100000,
+572 "offset": 0,
+573 "order": "name",
+574 "reverse": False,
+575 },
+576 )
+577 assert isinstance(result, list)
+578 assert len(result) == 1
+579 assert all(isinstance(station, Station) for station in result)
+580 assert result[0].name == "Test Station"
+ +582 @pytest.mark.asyncio
+583 async def test_stations_with_filter(self, radio_browser):
+584 """Test the stations method with filter parameters."""
+585 stations_data = [
+586 {
+587 "bitrate": 128,
+588 "changeuuid": "change-uuid",
+589 "clickcount": 100,
+590 "clicktimestamp_iso8601": "2023-01-01T00:00:00Z",
+591 "clicktrend": 1,
+592 "codec": "MP3",
+593 "countrycode": "US",
+594 "favicon": "https://example.com/favicon.ico",
+595 "geo_lat": 37.7749,
+596 "geo_long": -122.4194,
+597 "has_extended_info": True,
+598 "hls": False,
+599 "homepage": "https://example.com",
+600 "iso_3166_2": "US-CA",
+601 "language": "English",
+602 "languagecodes": "en",
+603 "lastchangetime_iso8601": "2023-01-01T00:00:00Z",
+604 "lastcheckok": True,
+605 "lastcheckoktime_iso8601": "2023-01-01T00:00:00Z",
+606 "lastchecktime_iso8601": "2023-01-01T00:00:00Z",
+607 "lastlocalchecktime_iso8601": "2023-01-01T00:00:00Z",
+608 "name": "Test Station",
+609 "ssl_error": 0,
+610 "state": "California",
+611 "stationuuid": "station-uuid",
+612 "tags": "rock,pop",
+613 "url_resolved": "https://example.com/stream",
+614 "url": "https://example.com/stream",
+615 "votes": 50,
+616 }
+617 ]
+618 stations_json = orjson.dumps(stations_data)
+ +620 with patch.object(
+621 radio_browser, "_request", AsyncMock(return_value=stations_json)
+622 ):
+623 result = await radio_browser.stations(
+624 filter_by=FilterBy.COUNTRY,
+625 filter_term="US",
+626 hide_broken=True,
+627 limit=10,
+628 offset=5,
+629 order=Order.BITRATE,
+630 reverse=True,
+631 )
+ +633 radio_browser._request.assert_called_once_with(
+634 "stations/bycountry/US",
+635 params={
+636 "hidebroken": True,
+637 "limit": 10,
+638 "offset": 5,
+639 "order": "bitrate",
+640 "reverse": True,
+641 },
+642 )
+643 assert len(result) == 1
+ +645 @pytest.mark.asyncio
+646 async def test_tags(self, radio_browser):
+647 """Test the tags method."""
+648 tags_data = [
+649 {"name": "rock", "stationcount": "100"},
+650 {"name": "pop", "stationcount": "50"},
+651 ]
+652 tags_json = orjson.dumps(tags_data)
+ +654 with patch.object(radio_browser, "_request", AsyncMock(return_value=tags_json)):
+655 result = await radio_browser.tags()
+ +657 radio_browser._request.assert_called_once_with(
+658 "tags",
+659 params={
+660 "hidebroken": False,
+661 "limit": 100000,
+662 "offset": 0,
+663 "order": "name",
+664 "reverse": False,
+665 },
+666 )
+667 assert isinstance(result, list)
+668 assert len(result) == 2
+669 assert all(isinstance(tag, Tag) for tag in result)
+670 assert result[0].name == "rock"
+671 assert result[0].station_count == "100"
+672 assert result[1].name == "pop"
+673 assert result[1].station_count == "50"
+ +675 @pytest.mark.asyncio
+676 async def test_tags_with_parameters(self, radio_browser):
+677 """Test the tags method with custom parameters."""
+678 tags_data = [{"name": "rock", "stationcount": "100"}]
+679 tags_json = orjson.dumps(tags_data)
+ +681 with patch.object(radio_browser, "_request", AsyncMock(return_value=tags_json)):
+682 result = await radio_browser.tags(
+683 hide_broken=True,
+684 limit=10,
+685 offset=5,
+686 order=Order.STATION_COUNT,
+687 reverse=True,
+688 )
+ +690 radio_browser._request.assert_called_once_with(
+691 "tags",
+692 params={
+693 "hidebroken": True,
+694 "limit": 10,
+695 "offset": 5,
+696 "order": "stationcount",
+697 "reverse": True,
+698 },
+699 )
+700 assert len(result) == 1
+701 assert result[0].name == "rock"
+702 assert result[0].station_count == "100"
+ +704 @pytest.mark.asyncio
+705 async def test_close(self, radio_browser, mock_session):
+706 """Test the close method."""
+707 radio_browser.session = mock_session
+708 radio_browser._close_session = True
+ +710 await radio_browser.close()
+ +712 mock_session.close.assert_called_once()
+ +714 @pytest.mark.asyncio
+715 async def test_close_no_session(self, radio_browser):
+716 """Test the close method when no session exists."""
+717 radio_browser.session = None
+718 radio_browser._close_session = True
+ +720 await radio_browser.close() # Should not raise an exception
+ +722 @pytest.mark.asyncio
+723 async def test_close_not_owned(self, radio_browser, mock_session):
+724 """Test the close method when session is not owned."""
+725 radio_browser.session = mock_session
+726 radio_browser._close_session = False
+ +728 await radio_browser.close()
+ +730 mock_session.close.assert_not_called()
+ +732 @pytest.mark.asyncio
+733 async def test_aenter(self, radio_browser):
+734 """Test the __aenter__ method."""
+735 result = await radio_browser.__aenter__()
+736 assert result is radio_browser
+ +738 @pytest.mark.asyncio
+739 async def test_aexit(self, radio_browser):
+740 """Test the __aexit__ method."""
+741 with patch.object(radio_browser, "close", AsyncMock()) as mock_close:
+742 await radio_browser.__aexit__(None, None, None)
+743 mock_close.assert_called_once()
+ +745 @pytest.mark.asyncio
+746 async def test_context_manager(self, radio_browser):
+747 """Test using RadioBrowser as a context manager."""
+748 with patch.object(radio_browser, "close", AsyncMock()) as mock_close:
+749 async with radio_browser as rb:
+750 assert rb is radio_browser
+751 mock_close.assert_called_once()
+ +753 @pytest.mark.asyncio
+754 async def test_request_backoff_retry(self, radio_browser, mock_session):
+755 """Test that _request retries on connection error."""
+756 radio_browser.session = mock_session
+757 radio_browser._host = "api.radio-browser.info"
+ +759 # First call raises error, second succeeds
+760 mock_session.request.side_effect = [
+761 aiohttp.ClientError(),
+762 AsyncMock(
+763 status=200,
+764 headers={"Content-Type": "application/json"},
+765 text=AsyncMock(return_value='{"test": "data"}')
+766 )
+767 ]
+ +769 # Patch backoff to make tests faster
+770 with patch("radios.radio_browser.backoff.expo", return_value=[0.1]):
+771 result = await radio_browser._request("test")
+ +773 assert result == '{"test": "data"}'
+774 assert mock_session.request.call_count == 2
+ +776 @pytest.mark.asyncio
+777 async def test_search_with_all_parameters(self, radio_browser):
+778 """Test the search method with all parameters."""
+779 stations_data = []
+780 stations_json = orjson.dumps(stations_data)
+ +782 with patch.object(
+783 radio_browser, "_request", AsyncMock(return_value=stations_json)
+784 ):
+785 result = await radio_browser.search(
+786 filter_by=FilterBy.NAME,
+787 filter_term="Test",
+788 hide_broken=True,
+789 limit=10,
+790 offset=5,
+791 order=Order.BITRATE,
+792 reverse=True,
+793 name="Test",
+794 name_exact=True,
+795 country="US",
+796 country_exact=True,
+797 state_exact=True,
+798 language_exact=True,
+799 tag_exact=True,
+800 bitrate_min=128,
+801 bitrate_max=320,
+802 )
+ +804 radio_browser._request.assert_called_once_with(
+805 "stations/search/byname/Test",
+806 params={
+807 "hidebroken": True,
+808 "limit": 10,
+809 "offset": 5,
+810 "order": "bitrate",
+811 "reverse": True,
+812 "name": "Test",
+813 "name_exact": True,
+814 "country": "US",
+815 "country_exact": True,
+816 "state_exact": True,
+817 "language_exact": True,
+818 "tag_exact": True,
+819 "bitrate_min": 128,
+820 "bitrate_max": 320,
+821 },
+822 )
+823 assert result == [] # TODO: Fix this assertion - should be an empty list
+Coverage for src/radios/models.py: 86% + + + + + ++ ++++ Coverage for src/radios/models.py: + 86% +
+ ++ 84 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
+ ++ + + + diff --git a/test-results/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html b/test-results/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html new file mode 100644 index 00000000..346ddfe0 --- /dev/null +++ b/test-results/coverage-final/z_c8b1f7e3f131828c_radio_browser_py.html @@ -0,0 +1,546 @@ + + + + +1"""Models for the Radio Browser API."""
+ +3# pylint: disable=too-few-public-methods
+4from __future__ import annotations
+ +6from dataclasses import dataclass, field
+7from datetime import datetime
+8from typing import cast
+ +10import pycountry
+11from awesomeversion import AwesomeVersion
+12from mashumaro import field_options
+13from mashumaro.mixins.orjson import DataClassORJSONMixin
+14from mashumaro.types import SerializationStrategy
+ + +17class CommaSeparatedString(SerializationStrategy):
+18 """String serialization strategy to handle comma separated strings."""
+ +20 def serialize(self, value: list[str]) -> str:
+21 """Serialize a list of strings to a comma separated value."""
+22 return ",".join(value)
+ +24 def deserialize(self, value: str) -> list[str]:
+25 """Deserialize a comma separated value to a list of strings."""
+26 return [item.strip() for item in value.split(",")]
+ + +29@dataclass
+30# pylint: disable=too-many-instance-attributes
+31class Stats(DataClassORJSONMixin):
+32 """Object holding the Radio Browser stats."""
+ +34 supported_version: int
+35 software_version: AwesomeVersion
+36 status: str
+37 stations: int
+38 stations_broken: int
+39 tags: int
+40 clicks_last_hour: int
+41 clicks_last_day: int
+42 languages: int
+43 countries: int
+ + +46@dataclass
+47# pylint: disable=too-many-instance-attributes
+48class Station(DataClassORJSONMixin):
+49 """Object information for a station from the Radio Browser."""
+ +51 bitrate: int
+52 change_uuid: str = field(metadata=field_options(alias="changeuuid"))
+53 click_count: int = field(metadata=field_options(alias="clickcount"))
+54 click_timestamp: datetime | None = field(
+55 metadata=field_options(alias="clicktimestamp_iso8601")
+56 )
+57 click_trend: int = field(metadata=field_options(alias="clicktrend"))
+58 codec: str
+59 country_code: str = field(metadata=field_options(alias="countrycode"))
+60 favicon: str
+61 latitude: float | None = field(metadata=field_options(alias="geo_lat"))
+62 longitude: float | None = field(metadata=field_options(alias="geo_long"))
+63 has_extended_info: bool
+64 hls: bool
+65 homepage: str
+66 iso_3166_2: str | None
+67 language: list[str] = field(
+68 metadata=field_options(serialization_strategy=CommaSeparatedString())
+69 )
+70 language_codes: list[str] = field(
+71 metadata=field_options(
+72 alias="languagecodes", serialization_strategy=CommaSeparatedString()
+73 )
+74 )
+75 lastchange_time: datetime | None = field(
+76 metadata=field_options(alias="lastchangetime_iso8601")
+77 )
+78 lastcheckok: bool
+79 last_check_ok_time: datetime | None = field(
+80 metadata=field_options(alias="lastcheckoktime_iso8601")
+81 )
+82 last_check_time: datetime | None = field(
+83 metadata=field_options(alias="lastchecktime_iso8601")
+84 )
+85 last_local_check_time: datetime | None = field(
+86 metadata=field_options(alias="lastlocalchecktime_iso8601")
+87 )
+88 name: str
+89 ssl_error: int
+90 state: str
+91 uuid: str = field(metadata=field_options(alias="stationuuid"))
+92 tags: list[str] = field(
+93 metadata=field_options(serialization_strategy=CommaSeparatedString())
+94 )
+95 url_resolved: str
+96 url: str
+97 votes: int
+ +99 @property
+100 def country(self) -> str | None:
+101 """Return country name of this station.
+ +103 Returns
+104 -------
+105 Country name or None if no country code is set.
+ +107 """
+108 if resolved_country := pycountry.countries.get(alpha_2=self.country_code):
+109 return cast("str", resolved_country.name)
+110 return None
+ + +113@dataclass
+114class Country(DataClassORJSONMixin):
+115 """Object information for a Counbtry from the Radio Browser."""
+ +117 code: str
+118 name: str
+119 station_count: str = field(metadata=field_options(alias="stationcount"))
+ +121 @property
+122 def favicon(self) -> str:
+123 """Return the favicon URL for the country.
+ +125 Returns
+126 -------
+127 URL to the favicon.
+ +129 """
+130 return f"https://flagcdn.com/256x192/{self.code.lower()}.png"
+ + +133@dataclass
+134class Language(DataClassORJSONMixin):
+135 """Object information for a Language from the Radio Browser."""
+ +137 code: str | None = field(metadata=field_options(alias="iso_639"))
+138 name: str
+139 station_count: str = field(metadata=field_options(alias="stationcount"))
+ +141 @property
+142 def favicon(self) -> str | None:
+143 """Return the favicon URL for the language.
+ +145 Returns
+146 -------
+147 URL to the favicon.
+ +149 """
+150 if self.code:
+151 return f"https://flagcdn.com/256x192/{self.code.lower()}.png"
+152 return None
+ + +155@dataclass
+156class Tag(DataClassORJSONMixin):
+157 """Object information for a Tag from the Radio Browser."""
+ +159 name: str
+160 station_count: str = field(metadata=field_options(alias="stationcount"))
+Coverage for src/radios/radio_browser.py: 97% + + + + + ++ ++++ Coverage for src/radios/radio_browser.py: + 97% +
+ ++ 111 statements + + + + +
++ « prev + ^ index + » next + + coverage.py v7.8.0, + created at 2025-05-14 09:19 +0000 +
+ ++ + + + diff --git a/test-results/coverage-initial.json b/test-results/coverage-initial.json new file mode 100644 index 00000000..0d03b29f --- /dev/null +++ b/test-results/coverage-initial.json @@ -0,0 +1 @@ +{"meta": {"format": 3, "version": "7.8.0", "timestamp": "2025-05-14T09:16:24.863312", "branch_coverage": true, "show_contexts": false}, "files": {"src/radios/__init__.py": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/const.py": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"Order": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "FilterBy": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/exceptions.py": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowserError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionTimeoutError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/models.py": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 84, "percent_covered": 85.22727272727273, "percent_covered_display": "85", "missing_lines": 9, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [22, 26, 108, 109, 110, 130, 150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110], [150, 151], [150, 152]], "functions": {"CommaSeparatedString.serialize": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "CommaSeparatedString.deserialize": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [26], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station.country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"CommaSeparatedString": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22, 26], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Stats": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "Tag": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/radio_browser.py": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 74, 80, 82, 86, 90, 91, 92, 103, 104, 105, 116, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 47, "num_statements": 111, "percent_covered": 35.172413793103445, "percent_covered_display": "35", "missing_lines": 64, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 30}, "missing_lines": [75, 76, 77, 78, 83, 84, 87, 88, 89, 106, 107, 108, 109, 110, 111, 112, 113, 114, 126, 127, 142, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 221, 232, 233, 234, 237, 286, 287, 288, 289, 290, 292, 311, 313, 327, 332, 333, 334, 365, 366, 367, 368, 369, 371, 381, 383, 410, 420, 422, 426, 427, 437, 447], "excluded_lines": [], "executed_branches": [[74, 80], [82, 86], [86, 90], [105, 116]], "missing_branches": [[74, 75], [82, 83], [86, 87], [87, 88], [87, 90], [88, 87], [88, 89], [105, 106], [181, 182], [181, 190], [184, 185], [184, 186], [186, 181], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [289, 292], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [368, 371], [426, -424], [426, 427]], "functions": {"RadioBrowser._request": {"executed_lines": [74, 80, 82, 86, 90, 91, 92, 103, 104, 105, 116], "summary": {"covered_lines": 11, "num_statements": 29, "percent_covered": 36.58536585365854, "percent_covered_display": "37", "missing_lines": 18, "excluded_lines": 0, "num_branches": 12, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 8}, "missing_lines": [75, 76, 77, 78, 83, 84, 87, 88, 89, 106, 107, 108, 109, 110, 111, 112, 113, 114], "excluded_lines": [], "executed_branches": [[74, 80], [82, 86], [86, 90], [105, 116]], "missing_branches": [[74, 75], [82, 83], [86, 87], [87, 88], [87, 90], [88, 87], [88, 89], [105, 106]]}, "RadioBrowser.stats": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [126, 127], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.station_click": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [142], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.countries": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 11, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 11, "excluded_lines": 0, "num_branches": 8, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 8}, "missing_lines": [169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194], "excluded_lines": [], "executed_branches": [], "missing_branches": [[181, 182], [181, 190], [184, 185], [184, 186], [186, 181], [186, 187], [190, 191], [190, 194]]}, "RadioBrowser.languages": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 5, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 5, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [221, 232, 233, 234, 237], "excluded_lines": [], "executed_branches": [], "missing_branches": [[233, 234], [233, 237]]}, "RadioBrowser.search": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 8, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 8, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [286, 287, 288, 289, 290, 292, 311, 313], "excluded_lines": [], "executed_branches": [], "missing_branches": [[287, 288], [287, 292], [289, 290], [289, 292]]}, "RadioBrowser.station": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 4, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 4, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [327, 332, 333, 334], "excluded_lines": [], "executed_branches": [], "missing_branches": [[332, 333], [332, 334]]}, "RadioBrowser.stations": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 8, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 8, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [365, 366, 367, 368, 369, 371, 381, 383], "excluded_lines": [], "executed_branches": [], "missing_branches": [[366, 367], [366, 371], [368, 369], [368, 371]]}, "RadioBrowser.tags": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [410, 420, 422], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.close": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [426, 427], "excluded_lines": [], "executed_branches": [], "missing_branches": [[426, -424], [426, 427]]}, "RadioBrowser.__aenter__": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [437], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.__aexit__": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [447], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowser": {"executed_lines": [74, 80, 82, 86, 90, 91, 92, 103, 104, 105, 116], "summary": {"covered_lines": 11, "num_statements": 75, "percent_covered": 13.761467889908257, "percent_covered_display": "14", "missing_lines": 64, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 30}, "missing_lines": [75, 76, 77, 78, 83, 84, 87, 88, 89, 106, 107, 108, 109, 110, 111, 112, 113, 114, 126, 127, 142, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 221, 232, 233, 234, 237, 286, 287, 288, 289, 290, 292, 311, 313, 327, 332, 333, 334, 365, 366, 367, 368, 369, 371, 381, 383, 410, 420, 422, 426, 427, 437, 447], "excluded_lines": [], "executed_branches": [[74, 80], [82, 86], [86, 90], [105, 116]], "missing_branches": [[74, 75], [82, 83], [86, 87], [87, 88], [87, 90], [88, 87], [88, 89], [105, 106], [181, 182], [181, 190], [184, 185], [184, 186], [186, 181], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [289, 292], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [368, 371], [426, -424], [426, 427]]}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}}, "totals": {"covered_lines": 167, "num_statements": 240, "percent_covered": 61.510791366906474, "percent_covered_display": "62", "missing_lines": 73, "excluded_lines": 0, "num_branches": 38, "num_partial_branches": 4, "covered_branches": 4, "missing_branches": 34}} \ No newline at end of file diff --git a/test-results/coverage-post-generation.json b/test-results/coverage-post-generation.json new file mode 100644 index 00000000..a29471ce --- /dev/null +++ b/test-results/coverage-post-generation.json @@ -0,0 +1 @@ +{"meta": {"format": 3, "version": "7.8.0", "timestamp": "2025-05-14T09:18:33.700563", "branch_coverage": true, "show_contexts": false}, "files": {"src/radios/__init__.py": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 4, 9, 10, 12], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/const.py": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"Order": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "FilterBy": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47], "summary": {"covered_lines": 37, "num_statements": 37, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/exceptions.py": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowserError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowserConnectionTimeoutError": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 8, 9, 12, 13], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/models.py": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 26, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 76, "num_statements": 84, "percent_covered": 86.36363636363636, "percent_covered_display": "86", "missing_lines": 8, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 4}, "missing_lines": [22, 108, 109, 110, 130, 150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110], [150, 151], [150, 152]], "functions": {"CommaSeparatedString.serialize": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "CommaSeparatedString.deserialize": {"executed_lines": [26], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station.country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language.favicon": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"CommaSeparatedString": {"executed_lines": [26], "summary": {"covered_lines": 1, "num_statements": 2, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [22], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Stats": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Station": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [108, 109, 110], "excluded_lines": [], "executed_branches": [], "missing_branches": [[108, 109], [108, 110]]}, "Country": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 1, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 1, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [130], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "Language": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 3, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 3, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 2}, "missing_lines": [150, 151, 152], "excluded_lines": [], "executed_branches": [], "missing_branches": [[150, 151], [150, 152]]}, "Tag": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 0, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 20, 24, 29, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 75, 78, 79, 82, 85, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 113, 114, 115, 117, 118, 119, 121, 122, 133, 134, 135, 137, 138, 139, 141, 142, 155, 156, 157, 159, 160], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "src/radios/radio_browser.py": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116, 118, 126, 127, 129, 142, 145, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 197, 221, 232, 233, 234, 237, 240, 286, 287, 288, 289, 290, 292, 311, 313, 315, 327, 332, 333, 334, 337, 365, 366, 367, 368, 369, 371, 381, 383, 386, 410, 420, 422, 424, 426, 427, 429, 437, 439, 447], "summary": {"covered_lines": 111, "num_statements": 111, "percent_covered": 97.24137931034483, "percent_covered_display": "97", "missing_lines": 0, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 4}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116], [181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [426, -424], [426, 427]], "missing_branches": [[88, 87], [186, 181], [289, 292], [368, 371]], "functions": {"RadioBrowser._request": {"executed_lines": [74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116], "summary": {"covered_lines": 29, "num_statements": 29, "percent_covered": 97.5609756097561, "percent_covered_display": "98", "missing_lines": 0, "excluded_lines": 0, "num_branches": 12, "num_partial_branches": 1, "covered_branches": 11, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116]], "missing_branches": [[88, 87]]}, "RadioBrowser.stats": {"executed_lines": [126, 127], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.station_click": {"executed_lines": [142], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.countries": {"executed_lines": [169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194], "summary": {"covered_lines": 11, "num_statements": 11, "percent_covered": 94.73684210526316, "percent_covered_display": "95", "missing_lines": 0, "excluded_lines": 0, "num_branches": 8, "num_partial_branches": 1, "covered_branches": 7, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194]], "missing_branches": [[186, 181]]}, "RadioBrowser.languages": {"executed_lines": [221, 232, 233, 234, 237], "summary": {"covered_lines": 5, "num_statements": 5, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[233, 234], [233, 237]], "missing_branches": []}, "RadioBrowser.search": {"executed_lines": [286, 287, 288, 289, 290, 292, 311, 313], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 91.66666666666667, "percent_covered_display": "92", "missing_lines": 0, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 1, "covered_branches": 3, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[287, 288], [287, 292], [289, 290]], "missing_branches": [[289, 292]]}, "RadioBrowser.station": {"executed_lines": [327, 332, 333, 334], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[332, 333], [332, 334]], "missing_branches": []}, "RadioBrowser.stations": {"executed_lines": [365, 366, 367, 368, 369, 371, 381, 383], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 91.66666666666667, "percent_covered_display": "92", "missing_lines": 0, "excluded_lines": 0, "num_branches": 4, "num_partial_branches": 1, "covered_branches": 3, "missing_branches": 1}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[366, 367], [366, 371], [368, 369]], "missing_branches": [[368, 371]]}, "RadioBrowser.tags": {"executed_lines": [410, 420, 422], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.close": {"executed_lines": [426, 427], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 2, "num_partial_branches": 0, "covered_branches": 2, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[426, -424], [426, 427]], "missing_branches": []}, "RadioBrowser.__aenter__": {"executed_lines": [437], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "RadioBrowser.__aexit__": {"executed_lines": [447], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"RadioBrowser": {"executed_lines": [74, 75, 76, 77, 78, 80, 82, 83, 84, 86, 87, 88, 89, 90, 91, 92, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116, 126, 127, 142, 169, 180, 181, 182, 184, 185, 186, 187, 190, 191, 194, 221, 232, 233, 234, 237, 286, 287, 288, 289, 290, 292, 311, 313, 327, 332, 333, 334, 365, 366, 367, 368, 369, 371, 381, 383, 410, 420, 422, 426, 427, 437, 447], "summary": {"covered_lines": 75, "num_statements": 75, "percent_covered": 96.3302752293578, "percent_covered_display": "96", "missing_lines": 0, "excluded_lines": 0, "num_branches": 34, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 4}, "missing_lines": [], "excluded_lines": [], "executed_branches": [[74, 75], [74, 80], [82, 83], [82, 86], [86, 87], [86, 90], [87, 88], [87, 90], [88, 89], [105, 106], [105, 116], [181, 182], [181, 190], [184, 185], [184, 186], [186, 187], [190, 191], [190, 194], [233, 234], [233, 237], [287, 288], [287, 292], [289, 290], [332, 333], [332, 334], [366, 367], [366, 371], [368, 369], [426, -424], [426, 427]], "missing_branches": [[88, 87], [186, 181], [289, 292], [368, 371]]}, "": {"executed_lines": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 25, 28, 29, 30, 32, 34, 35, 37, 38, 40, 43, 118, 129, 145, 197, 240, 315, 337, 386, 424, 429, 439], "summary": {"covered_lines": 36, "num_statements": 36, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/__init__.py": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 4, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"load_fixture": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 2, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 3, 6], "summary": {"covered_lines": 2, "num_statements": 4, "percent_covered": 50.0, "percent_covered_display": "50", "missing_lines": 2, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [8, 9], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/test_radio_browser.py": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 24, 27, 28, 30, 31, 32, 33, 34, 35, 36, 39, 40, 48, 49, 51, 52, 54, 55, 57, 58, 59, 60, 61, 63, 65, 68, 70, 71, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89, 91, 92, 94, 95, 96, 98, 99, 101, 103, 104, 106, 107, 108, 110, 111, 113, 115, 116, 118, 119, 120, 122, 123, 125, 127, 128, 130, 131, 132, 133, 134, 135, 136, 138, 139, 141, 142, 144, 145, 147, 149, 150, 151, 153, 154, 156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 188, 189, 191, 192, 194, 196, 197, 199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231, 233, 234, 236, 237, 239, 242, 250, 260, 262, 263, 265, 269, 271, 274, 276, 286, 287, 288, 291, 292, 294, 295, 297, 298, 300, 303, 311, 321, 323, 324, 326, 359, 361, 364, 366, 385, 386, 387, 388, 390, 391, 393, 426, 428, 431, 448, 467, 469, 470, 472, 505, 507, 510, 512, 513, 514, 516, 517, 519, 520, 522, 524, 525, 527, 560, 562, 565, 567, 577, 578, 579, 580, 582, 583, 585, 618, 620, 623, 633, 643, 645, 646, 648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673, 675, 676, 678, 679, 681, 682, 690, 700, 701, 702, 704, 705, 707, 708, 710, 712, 714, 715, 717, 718, 720, 722, 723, 725, 726, 728, 730, 732, 733, 735, 736, 738, 739, 741, 742, 743, 745, 746, 748, 749, 750, 751, 753, 754, 756, 757, 760, 770, 771, 773, 774, 776, 777, 779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 288, "num_statements": 292, "percent_covered": 98.63013698630137, "percent_covered_display": "99", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"radio_browser": {"executed_lines": [24], "summary": {"covered_lines": 1, "num_statements": 1, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "mock_session": {"executed_lines": [30, 31, 32, 33, 34, 35, 36], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "mock_dns_resolver": {"executed_lines": [], "summary": {"covered_lines": 0, "num_statements": 4, "percent_covered": 0.0, "percent_covered_display": "0", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_dns_resolution": {"executed_lines": [54, 55, 57, 58, 59, 60, 61, 63, 65, 68], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_creates_session_if_none": {"executed_lines": [73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89], "summary": {"covered_lines": 14, "num_statements": 14, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_timeout": {"executed_lines": [94, 95, 96, 98, 99, 101], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_connection_error": {"executed_lines": [106, 107, 108, 110, 111, 113], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_socket_error": {"executed_lines": [118, 119, 120, 122, 123, 125], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_invalid_content_type": {"executed_lines": [130, 131, 132, 133, 134, 135, 136, 138, 139], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_boolean_params": {"executed_lines": [144, 145, 147, 149, 150, 151], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stats": {"executed_lines": [156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186], "summary": {"covered_lines": 16, "num_statements": 16, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station_click": {"executed_lines": [191, 192, 194], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_countries": {"executed_lines": [199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231], "summary": {"covered_lines": 12, "num_statements": 12, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_countries_with_parameters": {"executed_lines": [236, 237, 239, 242, 250, 260], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_languages": {"executed_lines": [265, 269, 271, 274, 276, 286, 287, 288, 291, 292], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_languages_with_parameters": {"executed_lines": [297, 298, 300, 303, 311, 321], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search": {"executed_lines": [326, 359, 361, 364, 366, 385, 386, 387, 388], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search_with_filter": {"executed_lines": [393, 426, 428, 431, 448, 467], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station": {"executed_lines": [472, 505, 507, 510, 512, 513, 514], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_station_not_found": {"executed_lines": [519, 520, 522], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stations": {"executed_lines": [527, 560, 562, 565, 567, 577, 578, 579, 580], "summary": {"covered_lines": 9, "num_statements": 9, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_stations_with_filter": {"executed_lines": [585, 618, 620, 623, 633, 643], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_tags": {"executed_lines": [648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673], "summary": {"covered_lines": 12, "num_statements": 12, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_tags_with_parameters": {"executed_lines": [678, 679, 681, 682, 690, 700, 701, 702], "summary": {"covered_lines": 8, "num_statements": 8, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close": {"executed_lines": [707, 708, 710, 712], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close_no_session": {"executed_lines": [717, 718, 720], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_close_not_owned": {"executed_lines": [725, 726, 728, 730], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_aenter": {"executed_lines": [735, 736], "summary": {"covered_lines": 2, "num_statements": 2, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_aexit": {"executed_lines": [741, 742, 743], "summary": {"covered_lines": 3, "num_statements": 3, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_context_manager": {"executed_lines": [748, 749, 750, 751], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_request_backoff_retry": {"executed_lines": [756, 757, 760, 770, 771, 773, 774], "summary": {"covered_lines": 7, "num_statements": 7, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "TestRadioBrowser.test_search_with_all_parameters": {"executed_lines": [779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 27, 28, 39, 40, 48, 49, 51, 52, 70, 71, 91, 92, 103, 104, 115, 116, 127, 128, 141, 142, 153, 154, 188, 189, 196, 197, 233, 234, 262, 263, 294, 295, 323, 324, 390, 391, 469, 470, 516, 517, 524, 525, 582, 583, 645, 646, 675, 676, 704, 705, 714, 715, 722, 723, 732, 733, 738, 739, 745, 746, 753, 754, 776, 777], "summary": {"covered_lines": 77, "num_statements": 77, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"TestRadioBrowser": {"executed_lines": [54, 55, 57, 58, 59, 60, 61, 63, 65, 68, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85, 87, 88, 89, 94, 95, 96, 98, 99, 101, 106, 107, 108, 110, 111, 113, 118, 119, 120, 122, 123, 125, 130, 131, 132, 133, 134, 135, 136, 138, 139, 144, 145, 147, 149, 150, 151, 156, 168, 170, 173, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 191, 192, 194, 199, 204, 206, 209, 211, 221, 222, 223, 226, 227, 230, 231, 236, 237, 239, 242, 250, 260, 265, 269, 271, 274, 276, 286, 287, 288, 291, 292, 297, 298, 300, 303, 311, 321, 326, 359, 361, 364, 366, 385, 386, 387, 388, 393, 426, 428, 431, 448, 467, 472, 505, 507, 510, 512, 513, 514, 519, 520, 522, 527, 560, 562, 565, 567, 577, 578, 579, 580, 585, 618, 620, 623, 633, 643, 648, 652, 654, 655, 657, 667, 668, 669, 670, 671, 672, 673, 678, 679, 681, 682, 690, 700, 701, 702, 707, 708, 710, 712, 717, 718, 720, 725, 726, 728, 730, 735, 736, 741, 742, 743, 748, 749, 750, 751, 756, 757, 760, 770, 771, 773, 774, 779, 780, 782, 785, 804, 823], "summary": {"covered_lines": 203, "num_statements": 203, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 17, 18, 21, 22, 24, 27, 28, 30, 31, 32, 33, 34, 35, 36, 39, 40, 48, 49, 51, 52, 70, 71, 91, 92, 103, 104, 115, 116, 127, 128, 141, 142, 153, 154, 188, 189, 196, 197, 233, 234, 262, 263, 294, 295, 323, 324, 390, 391, 469, 470, 516, 517, 524, 525, 582, 583, 645, 646, 675, 676, 704, 705, 714, 715, 722, 723, 732, 733, 738, 739, 745, 746, 753, 754, 776, 777], "summary": {"covered_lines": 85, "num_statements": 89, "percent_covered": 95.50561797752809, "percent_covered_display": "96", "missing_lines": 4, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [42, 43, 44, 45], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}, "tests/test_radios.py": {"executed_lines": [1, 4, 5, 7, 10, 12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": [], "functions": {"test_json_request": {"executed_lines": [12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 6, "num_statements": 6, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}, "": {"executed_lines": [1, 4, 5, 7, 10], "summary": {"covered_lines": 4, "num_statements": 4, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}, "classes": {"": {"executed_lines": [1, 4, 5, 7, 10, 12, 22, 23, 24, 25, 26], "summary": {"covered_lines": 10, "num_statements": 10, "percent_covered": 100.0, "percent_covered_display": "100", "missing_lines": 0, "excluded_lines": 0, "num_branches": 0, "num_partial_branches": 0, "covered_branches": 0, "missing_branches": 0}, "missing_lines": [], "excluded_lines": [], "executed_branches": [], "missing_branches": []}}}}, "totals": {"covered_lines": 532, "num_statements": 546, "percent_covered": 96.23287671232876, "percent_covered_display": "96", "missing_lines": 14, "excluded_lines": 0, "num_branches": 38, "num_partial_branches": 4, "covered_branches": 30, "missing_branches": 8}} \ No newline at end of file diff --git a/test-results/experiment_data_complete_20250514_092001.zip b/test-results/experiment_data_complete_20250514_092001.zip new file mode 100644 index 0000000000000000000000000000000000000000..1efb32de27b9f9b08881531f958dddfd3d1ea738 GIT binary patch literal 150950 zcmd42bC6_FnC)A(ZQHhOcb9G3wrzKrUFfoH+pfy$vaMS^b0_YNiTCFH`!deniEo{g zdE&(0xqmBHD#?O^p#lB71<2HB{l|m<-NAg{8#=jIni(3qI5R5!zv_^_b>^marcQ<~ zrY8C>rq2JP8vI*rV{iUH9T4hUVr%N+WNG|AsSv+aZkEojhBlU7hAx)&cK=5V^&jW* z=!G0l_x*MYa6mvL-(pckc_kHbDRBi=>7U~I;u=cgD$?@e3TpZ);!27tY7Dj}zkkX) zZAc((-J$80w2r5dgB3%mEGi_CXQNkDC&>IMmJ~|Pfx;uo2o!*nLP&5`I8H9^fCK{8 z`cxxdkI49(Jlo0M4ql+%{N;L$0go|$GTA$192dI%%h3Vqc#VS5A$IuGI|Lh`x#!g- zgPV+s6%tGp^Ex2Tg&ktpv$C;4iinjS2M;(hD~c-9yFz+=DwE*-t#a$BxJ1"""Asynchronous Python client for the Radio Browser API."""
+ +3from __future__ import annotations
+ +5import asyncio
+6import random
+7import socket
+8from dataclasses import dataclass
+9from typing import Any, Self
+ +11import aiohttp
+12import backoff
+13import orjson
+14import pycountry
+15from aiodns import DNSResolver
+16from aiohttp import hdrs
+17from yarl import URL
+ +19from .const import FilterBy, Order
+20from .exceptions import (
+21 RadioBrowserConnectionError,
+22 RadioBrowserConnectionTimeoutError,
+23 RadioBrowserError,
+24)
+25from .models import Country, Language, Station, Stats, Tag
+ + +28@dataclass
+29class RadioBrowser:
+30 """Main class for handling connections with the Radio Browser API."""
+ +32 user_agent: str
+ +34 request_timeout: float = 8.0
+35 session: aiohttp.client.ClientSession | None = None
+ +37 _close_session: bool = False
+38 _host: str | None = None
+ +40 @backoff.on_exception(
+41 backoff.expo, RadioBrowserConnectionError, max_tries=5, logger=None
+42 )
+43 async def _request(
+44 self,
+45 uri: str = "",
+46 method: str = hdrs.METH_GET,
+47 params: dict[str, Any] | None = None,
+48 ) -> str:
+49 """Handle a request to the Radio Browser API.
+ +51 A generic method for sending/handling HTTP requests done against
+52 the Radio Browser API.
+ +54 Args:
+55 ----
+56 uri: Request URI, for example `stats`.
+57 method: HTTP method to use for the request.E.g., "GET" or "POST".
+58 params: Dictionary of data to send to the Radio Browser API.
+ +60 Returns:
+61 -------
+62 The response from the Radio Browser API.
+ +64 Raises:
+65 ------
+66 RadioBrowserConnectionError: An error occurred while communication with
+67 the Radio Browser API.
+68 RadioBrowserConnectionTimeoutError: A timeout occurred while communicating
+69 with the Radio Browser API.
+70 RadioBrowserError: Received an unexpected response from the
+71 Radio Browser API.
+ +73 """
+74 if self._host is None:
+75 resolver = DNSResolver()
+76 result = await resolver.query("_api._tcp.radio-browser.info", "SRV")
+77 random.shuffle(result)
+78 self._host = result[0].host
+ +80 url = URL.build(scheme="https", host=self._host, path="/json/").join(URL(uri))
+ +82 if self.session is None:
+83 self.session = aiohttp.ClientSession()
+84 self._close_session = True
+ +86 if params:
+87 for key, value in params.items():
+88 if isinstance(value, bool): 88 ↛ 87line 88 didn't jump to line 87 because the condition on line 88 was always true
+89 params[key] = str(value).lower()
+90 try:
+91 async with asyncio.timeout(self.request_timeout):
+92 response = await self.session.request(
+93 method,
+94 url,
+95 headers={
+96 "User-Agent": self.user_agent,
+97 "Accept": "application/json",
+98 },
+99 params=params,
+100 raise_for_status=True,
+101 )
+ +103 content_type = response.headers.get("Content-Type", "")
+104 text = await response.text()
+105 if "application/json" not in content_type:
+106 raise RadioBrowserError(response.status, {"message": text})
+107 except asyncio.TimeoutError as exception:
+108 self._host = None
+109 msg = "Timeout occurred while connecting to the Radio Browser API"
+110 raise RadioBrowserConnectionTimeoutError(msg) from exception
+111 except (aiohttp.ClientError, socket.gaierror) as exception:
+112 self._host = None
+113 msg = "Error occurred while communicating with the Radio Browser API"
+114 raise RadioBrowserConnectionError(msg) from exception
+ +116 return text
+ +118 async def stats(self) -> Stats:
+119 """Get Radio Browser service stats.
+ +121 Returns
+122 -------
+123 A Stats object, with information about the Radio Browser API.
+ +125 """
+126 response = await self._request("stats")
+127 return Stats.from_json(response)
+ +129 async def station_click(self, *, uuid: str) -> None:
+130 """Register click on a station.
+ +132 Increase the click count of a station by one. This should be called
+133 every time when a user starts playing a stream to mark the stream more
+134 popular than others. Every call to this endpoint from the same IP
+135 address and for the same station only gets counted once per day.
+ +137 Args:
+138 ----
+139 uuid: UUID of the station.
+ +141 """
+142 await self._request(f"url/{uuid}")
+ +144 # pylint: disable-next=too-many-arguments
+145 async def countries(
+146 self,
+147 *,
+148 hide_broken: bool = False,
+149 limit: int = 100000,
+150 offset: int = 0,
+151 order: Order = Order.NAME,
+152 reverse: bool = False,
+153 ) -> list[Country]:
+154 """Get list of available countries.
+ +156 Args:
+157 ----
+158 hide_broken: Do not count broken stations.
+159 limit: Limit the number of results.
+160 offset: Offset the results.
+161 order: Order the results.
+162 reverse: Reverse the order of the results.
+ +164 Returns:
+165 -------
+166 A Stats object, with information about the Radio Browser API.
+ +168 """
+169 countries_data = await self._request(
+170 "countrycodes",
+171 params={
+172 "hidebroken": hide_broken,
+173 "limit": limit,
+174 "offset": offset,
+175 "order": order.value,
+176 "reverse": reverse,
+177 },
+178 )
+ +180 countries = orjson.loads(countries_data) # pylint: disable=no-member
+181 for country in countries: # pylint: disable=not-an-iterable
+182 country["code"] = country["name"]
+183 # https://github.com/frenck/python-radios/issues/19
+184 if country["name"] == "XK":
+185 country["name"] = "Kosovo"
+186 elif resolved_country := pycountry.countries.get(alpha_2=country["name"]): 186 ↛ 181line 186 didn't jump to line 181 because the condition on line 186 was always true
+187 country["name"] = resolved_country.name
+ +189 # Because we enrichted the countries we need to re-order in this case
+190 if order == Order.NAME:
+191 countries.sort(key=lambda country: country["name"])
+ +193 # pylint: disable-next=not-an-iterable
+194 return [Country.from_dict(country) for country in countries]
+ +196 # pylint: disable-next=too-many-arguments
+197 async def languages(
+198 self,
+199 *,
+200 hide_broken: bool = False,
+201 limit: int = 100000,
+202 offset: int = 0,
+203 order: Order = Order.NAME,
+204 reverse: bool = False,
+205 ) -> list[Language]:
+206 """Get list of available languages.
+ +208 Args:
+209 ----
+210 hide_broken: Do not count broken stations.
+211 limit: Limit the number of results.
+212 offset: Offset the results.
+213 order: Order the results.
+214 reverse: Reverse the order of the results.
+ +216 Returns:
+217 -------
+218 A list of Language objects.
+ +220 """
+221 languages_data = await self._request(
+222 "languages",
+223 params={
+224 "hidebroken": hide_broken,
+225 "offset": offset,
+226 "order": order.value,
+227 "reverse": reverse,
+228 "limit": limit,
+229 },
+230 )
+ +232 languages = orjson.loads(languages_data) # pylint: disable=no-member
+233 for language in languages: # pylint: disable=not-an-iterable
+234 language["name"] = language["name"].title()
+ +236 # pylint: disable-next=not-an-iterable
+237 return [Language.from_dict(language) for language in languages]
+ +239 # pylint: disable-next=too-many-arguments, too-many-locals
+240 async def search( # noqa: PLR0913
+241 self,
+242 *,
+243 filter_by: FilterBy | None = None,
+244 filter_term: str | None = None,
+245 hide_broken: bool = False,
+246 limit: int = 100000,
+247 offset: int = 0,
+248 order: Order = Order.NAME,
+249 reverse: bool = False,
+250 name: str | None = None,
+251 name_exact: bool = False,
+252 country: str | None = "",
+253 country_exact: bool = False,
+254 state_exact: bool = False,
+255 language_exact: bool = False,
+256 tag_exact: bool = False,
+257 bitrate_min: int = 0,
+258 bitrate_max: int = 1000000,
+259 ) -> list[Station]:
+260 """Get list of radio stations.
+ +262 Args:
+263 ----
+264 filter_by: Filter the results by a specific field.
+265 filter_term: Search term to filter the results.
+266 hide_broken: Do not count broken stations.
+267 limit: Limit the number of results.
+268 offset: Offset the results.
+269 order: Order the results.
+270 reverse: Reverse the order of the results.
+271 name: Search by name.
+272 name_exact: Search by exact name.
+273 country: Search by country.
+274 country_exact: Search by exact country.
+275 state_exact: Search by exact state.
+276 language_exact: Search by exact language.
+277 tag_exact: Search by exact tag.
+278 bitrate_min: Search by minimum bitrate.
+279 bitrate_max: Search by maximum bitrate.
+ +281 Returns:
+282 -------
+283 A list of Station objects.
+ +285 """
+286 uri = "stations/search"
+287 if filter_by is not None:
+288 uri = f"{uri}/{filter_by.value}"
+289 if filter_term is not None: 289 ↛ 292line 289 didn't jump to line 292 because the condition on line 289 was always true
+290 uri = f"{uri}/{filter_term}"
+ +292 stations_data = await self._request(
+293 uri,
+294 params={
+295 "hidebroken": hide_broken,
+296 "offset": offset,
+297 "order": order.value,
+298 "reverse": reverse,
+299 "limit": limit,
+300 "name": name,
+301 "name_exact": name_exact,
+302 "country": country,
+303 "country_exact": country_exact,
+304 "state_exact": state_exact,
+305 "language_exact": language_exact,
+306 "tag_exact": tag_exact,
+307 "bitrate_min": bitrate_min,
+308 "bitrate_max": bitrate_max,
+309 },
+310 )
+311 stations = orjson.loads(stations_data) # pylint: disable=no-member
+312 # pylint: disable-next=not-an-iterable
+313 return [Station.from_dict(station) for station in stations]
+ +315 async def station(self, *, uuid: str) -> Station | None:
+316 """Get station by UUID.
+ +318 Args:
+319 ----
+320 uuid: UUID of the station.
+ +322 Returns:
+323 -------
+324 A Station object if found.
+ +326 """
+327 stations = await self.stations(
+328 filter_by=FilterBy.UUID,
+329 filter_term=uuid,
+330 limit=1,
+331 )
+332 if not stations:
+333 return None
+334 return stations[0]
+ +336 # pylint: disable-next=too-many-arguments
+337 async def stations( # noqa: PLR0913
+338 self,
+339 *,
+340 filter_by: FilterBy | None = None,
+341 filter_term: str | None = None,
+342 hide_broken: bool = False,
+343 limit: int = 100000,
+344 offset: int = 0,
+345 order: Order = Order.NAME,
+346 reverse: bool = False,
+347 ) -> list[Station]:
+348 """Get list of radio stations.
+ +350 Args:
+351 ----
+352 filter_by: Filter the results by a specific field.
+353 filter_term: Search term to filter the results.
+354 hide_broken: Do not count broken stations.
+355 limit: Limit the number of results.
+356 offset: Offset the results.
+357 order: Order the results.
+358 reverse: Reverse the order of the results.
+ +360 Returns:
+361 -------
+362 A list of Station objects.
+ +364 """
+365 uri = "stations"
+366 if filter_by is not None:
+367 uri = f"{uri}/{filter_by.value}"
+368 if filter_term is not None: 368 ↛ 371line 368 didn't jump to line 371 because the condition on line 368 was always true
+369 uri = f"{uri}/{filter_term}"
+ +371 stations_data = await self._request(
+372 uri,
+373 params={
+374 "hidebroken": hide_broken,
+375 "offset": offset,
+376 "order": order.value,
+377 "reverse": reverse,
+378 "limit": limit,
+379 },
+380 )
+381 stations = orjson.loads(stations_data) # pylint: disable=no-member
+382 # pylint: disable-next=not-an-iterable
+383 return [Station.from_dict(station) for station in stations]
+ +385 # pylint: disable-next=too-many-arguments
+386 async def tags(
+387 self,
+388 *,
+389 hide_broken: bool = False,
+390 limit: int = 100000,
+391 offset: int = 0,
+392 order: Order = Order.NAME,
+393 reverse: bool = False,
+394 ) -> list[Tag]:
+395 """Get list of available tags.
+ +397 Args:
+398 ----
+399 hide_broken: Do not count broken stations.
+400 limit: Limit the number of results.
+401 offset: Offset the results.
+402 order: Order the results.
+403 reverse: Reverse the order of the results.
+ +405 Returns:
+406 -------
+407 A list of Tags objects.
+ +409 """
+410 tags_data = await self._request(
+411 "tags",
+412 params={
+413 "hidebroken": hide_broken,
+414 "offset": offset,
+415 "order": order.value,
+416 "reverse": reverse,
+417 "limit": limit,
+418 },
+419 )
+420 tags = orjson.loads(tags_data) # pylint: disable=no-member
+421 # pylint: disable-next=not-an-iterable
+422 return [Tag.from_dict(tag) for tag in tags]
+ +424 async def close(self) -> None:
+425 """Close open client session."""
+426 if self.session and self._close_session:
+427 await self.session.close()
+ +429 async def __aenter__(self) -> Self:
+430 """Async enter.
+ +432 Returns
+433 -------
+434 The RadioBrowser object.
+ +436 """
+437 return self
+ +439 async def __aexit__(self, *_exc_info: object) -> None:
+440 """Async exit.
+ +442 Args:
+443 ----
+444 _exc_info: Exec type.
+ +446 """
+447 await self.close()
+UseRHt)J@Llr;8gl0 A;Euk`l;%QX zb8Tdyu<0^u#Ut 8y z)(hRo?Fx3PVH?lr zLUchi4N !fqJ0PnnGN8C%t!Rc9?KZTUSwLrAe2fSu*_kT4!Z5xO zw=7kq9aWTsS+;X$HHxXD1-9V*^yzK$oVA0;M4Nc*?v7|l4XLOiL3Uh42p;GlW Tz247aNT133w-I-uu6``FCxmxr{vt5b4voavcHO~&tP?FC<`akJZ`5s4%Y z%s1lFjVoA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