From 681390d76c58fb61a92fbf53455d8608b091d7a4 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 18 Jul 2025 22:50:36 +0300 Subject: [PATCH] Update tests/__data__ --- .../epg_grab/{guide_2.xml => base.guide.xml} | 1 + ...{guide_3.xml => custom_channels.guide.xml} | 9 ++++--- tests/__data__/expected/epg_grab/guide.xml.gz | 4 --- .../epg_grab/{guide_4.xml => lang.guide.xml} | 0 .../expected/epg_grab/proxy.guide.xml | 9 +++++++ .../{guide.xml => template.guide.xml} | 5 ++-- .../expected/epg_grab/template.guide.xml.gz | Bin 0 -> 398 bytes tests/__data__/input/__data__/channels.json | 23 +++++++----------- tests/__data__/input/__data__/feeds.json | 14 +++++++++++ tests/__data__/input/__data__/logos.json | 4 +++ .../input/epg_grab/custom.channels.xml | 4 +-- .../example2.com/example2.com.channels.xml | 2 +- 12 files changed, 48 insertions(+), 27 deletions(-) rename tests/__data__/expected/epg_grab/{guide_2.xml => base.guide.xml} (89%) rename tests/__data__/expected/epg_grab/{guide_3.xml => custom_channels.guide.xml} (67%) delete mode 100644 tests/__data__/expected/epg_grab/guide.xml.gz rename tests/__data__/expected/epg_grab/{guide_4.xml => lang.guide.xml} (100%) create mode 100644 tests/__data__/expected/epg_grab/proxy.guide.xml rename tests/__data__/expected/epg_grab/{guide.xml => template.guide.xml} (81%) create mode 100644 tests/__data__/expected/epg_grab/template.guide.xml.gz create mode 100644 tests/__data__/input/__data__/logos.json diff --git a/tests/__data__/expected/epg_grab/guide_2.xml b/tests/__data__/expected/epg_grab/base.guide.xml similarity index 89% rename from tests/__data__/expected/epg_grab/guide_2.xml rename to tests/__data__/expected/epg_grab/base.guide.xml index 3180449c..09471f36 100644 --- a/tests/__data__/expected/epg_grab/guide_2.xml +++ b/tests/__data__/expected/epg_grab/base.guide.xml @@ -1,6 +1,7 @@ Channel 2https://example.com36 Channel 1https://example.com +Channel 1https://example.com Programme1 (example.com) Program1 (example.com) Programme1 (example.com) diff --git a/tests/__data__/expected/epg_grab/guide_3.xml b/tests/__data__/expected/epg_grab/custom_channels.guide.xml similarity index 67% rename from tests/__data__/expected/epg_grab/guide_3.xml rename to tests/__data__/expected/epg_grab/custom_channels.guide.xml index b51e1e1d..e2c7bf4c 100644 --- a/tests/__data__/expected/epg_grab/guide_3.xml +++ b/tests/__data__/expected/epg_grab/custom_channels.guide.xml @@ -1,14 +1,15 @@ Custom Channel 1https://example.com Custom Channel 2https://example.com -Channel 3https://example2.com -Channel 4https://example2.com +Channel 1https://example.com +Channel 3https://example2.com +Channel 4https://example2.com Channel 1https://example2.com Programme1 (example.com) Program1 (example.com) Programme1 (example2.com) Programme1 (example.com) Program1 (example.com) -Program1 (example2.com) -Program1 (example2.com) +Program1 (example2.com) +Program1 (example2.com) \ No newline at end of file diff --git a/tests/__data__/expected/epg_grab/guide.xml.gz b/tests/__data__/expected/epg_grab/guide.xml.gz deleted file mode 100644 index 7f27c6b1..00000000 --- a/tests/__data__/expected/epg_grab/guide.xml.gz +++ /dev/null @@ -1,4 +0,0 @@ -xœ]K0ChTBNk mi6翷ۘvsx=}8)N+l -I!6sE -z 9  SH1S FZSx}Ѹ*Ya$K2=SY -G!5B*R(sG{q6/TR˦F`:<3<0Fm)p7Oc\j'C)#s%" TeS8[>'BKB1ݞ>O/ͪ |X/I1Q|\ Ȋ6:jPAKEzNCkɲ  L%Xɟϋ@Fq{IZI`XWr.& e9< \ No newline at end of file diff --git a/tests/__data__/expected/epg_grab/guide_4.xml b/tests/__data__/expected/epg_grab/lang.guide.xml similarity index 100% rename from tests/__data__/expected/epg_grab/guide_4.xml rename to tests/__data__/expected/epg_grab/lang.guide.xml diff --git a/tests/__data__/expected/epg_grab/proxy.guide.xml b/tests/__data__/expected/epg_grab/proxy.guide.xml new file mode 100644 index 00000000..09471f36 --- /dev/null +++ b/tests/__data__/expected/epg_grab/proxy.guide.xml @@ -0,0 +1,9 @@ + +Channel 2https://example.com36 +Channel 1https://example.com +Channel 1https://example.com +Programme1 (example.com) +Program1 (example.com) +Programme1 (example.com) +Program1 (example.com) + \ No newline at end of file diff --git a/tests/__data__/expected/epg_grab/guide.xml b/tests/__data__/expected/epg_grab/template.guide.xml similarity index 81% rename from tests/__data__/expected/epg_grab/guide.xml rename to tests/__data__/expected/epg_grab/template.guide.xml index fb7736c7..cd54510c 100644 --- a/tests/__data__/expected/epg_grab/guide.xml +++ b/tests/__data__/expected/epg_grab/template.guide.xml @@ -1,8 +1,9 @@ Channel 2https://example.com36 Channel 1https://example.com +Channel 1https://example.com Channel 3https://example2.com -Channel 4https://example2.com +Channel 4https://example2.com Channel 1https://example2.com Programme1 (example.com) Program1 (example.com) @@ -10,5 +11,5 @@ Programme1 (example.com) Program1 (example.com) Program1 (example2.com) -Program1 (example2.com) +Program1 (example2.com) \ No newline at end of file diff --git a/tests/__data__/expected/epg_grab/template.guide.xml.gz b/tests/__data__/expected/epg_grab/template.guide.xml.gz new file mode 100644 index 0000000000000000000000000000000000000000..126b426d8d5c2bd2b4ba3caa2773959a14ab57fb GIT binary patch literal 398 zcmV;90df9#oXwP7OT#c2h3^IbLkI|p*nG6kDQPA;WC((YUQ1|W4d$b!+5GtRwsX@d zbm}(Io3`nB>3N#-zG1ybqrph}N;#WC5@86W&0MZ*k;1FXlbtREJCE!D!%%Z)Xad&4Naiq-&y4eJ z|BX{T$0`1L--o4kB99)_oiZ|4B67Y!&8loxsKzkPR;YtI3F>UnJ?W*rrkL!`Nr!%) zKB?&s2mQ7mNPgBhN9WIjZufLGXv;>}W>tDucwvkLRS-T*CyVUkB*qwn?fOy=V-;LE zqwSFyZSu9xs6hoSffmgK-+0K+r%nWH&h*t5L*vRC>y70rFtRc*Y2Uz>#!7yDzvu#F s6t^c?Yk!yI7_2491;AFBCustom Channel 1 Custom Channel 2 Channel 1 - Channel 3 - Channel 4 + Channel 3 + Channel 4 Channel 1 \ No newline at end of file diff --git a/tests/__data__/input/epg_grab/sites/example2.com/example2.com.channels.xml b/tests/__data__/input/epg_grab/sites/example2.com/example2.com.channels.xml index 821bd29c..612a6a49 100644 --- a/tests/__data__/input/epg_grab/sites/example2.com/example2.com.channels.xml +++ b/tests/__data__/input/epg_grab/sites/example2.com/example2.com.channels.xml @@ -1,6 +1,6 @@ Channel 3 - Channel 4 + Channel 4 Channel 1 \ No newline at end of file