From 9c7e222c183e1576bdb8cc56e3480f704d59753b Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 15 Sep 2023 18:37:31 +0300 Subject: [PATCH] Update tests data --- tests/__data__/expected/_readme.md | 267 +- .../expected/database/db_create.streams.db | 14 +- tests/__data__/expected/logs/generators.log | 72 + .../expected/logs/generators/categories.log | 29 - .../expected/logs/generators/countries.log | 7 - .../logs/generators/index_category_m3u.log | 1 - .../logs/generators/index_country_m3u.log | 1 - .../logs/generators/index_language_m3u.log | 1 - .../expected/logs/generators/index_m3u.log | 1 - .../logs/generators/index_nsfw_m3u.log | 1 - .../logs/generators/index_region_m3u.log | 1 - .../expected/logs/generators/languages.log | 4 - .../expected/logs/generators/regions.log | 26 - tests/__data__/expected/streams/in.m3u | 3 + tests/__data__/expected/streams/my.m3u | 5 + tests/__data__/expected/streams/nl.m3u | 4 +- tests/__data__/expected/streams/pe.m3u | 3 - tests/__data__/expected/streams/us.m3u | 5 + tests/__data__/input/.readme/config.json | 4 + tests/__data__/input/.readme/template.md | 158 + tests/__data__/input/_readme.json | 4 - tests/__data__/input/data/blocklist.json | 2 +- tests/__data__/input/data/channels.json | 96 + tests/__data__/input/data/streams.json | 1 + .../input/database/api_generate.streams.db | 14 +- .../input/database/playlist_format.streams.db | 20 - .../database/playlist_generate.streams.db | 28 +- .../input/database/playlist_update.streams.db | 21 + tests/__data__/input/issues/streams_add.js | 406 +++ .../input/issues/streams_add_approved.js | 2651 +++++++++++++++++ .../input/issues/streams_edit_approved.js | 81 + .../input/issues/streams_remove_approved.js | 1845 ++++++++++++ tests/__data__/input/logs/generators.log | 73 + .../input/logs/generators/categories.log | 29 - .../input/logs/generators/countries.log | 253 -- .../input/logs/generators/languages.log | 5 - .../input/logs/generators/regions.log | 26 - 37 files changed, 5466 insertions(+), 696 deletions(-) create mode 100644 tests/__data__/expected/logs/generators.log delete mode 100644 tests/__data__/expected/logs/generators/categories.log delete mode 100644 tests/__data__/expected/logs/generators/countries.log delete mode 100644 tests/__data__/expected/logs/generators/index_category_m3u.log delete mode 100644 tests/__data__/expected/logs/generators/index_country_m3u.log delete mode 100644 tests/__data__/expected/logs/generators/index_language_m3u.log delete mode 100644 tests/__data__/expected/logs/generators/index_m3u.log delete mode 100644 tests/__data__/expected/logs/generators/index_nsfw_m3u.log delete mode 100644 tests/__data__/expected/logs/generators/index_region_m3u.log delete mode 100644 tests/__data__/expected/logs/generators/languages.log delete mode 100644 tests/__data__/expected/logs/generators/regions.log create mode 100644 tests/__data__/expected/streams/in.m3u create mode 100644 tests/__data__/expected/streams/my.m3u delete mode 100644 tests/__data__/expected/streams/pe.m3u create mode 100644 tests/__data__/expected/streams/us.m3u create mode 100644 tests/__data__/input/.readme/config.json create mode 100644 tests/__data__/input/.readme/template.md delete mode 100644 tests/__data__/input/_readme.json create mode 100644 tests/__data__/input/data/streams.json delete mode 100644 tests/__data__/input/database/playlist_format.streams.db create mode 100644 tests/__data__/input/database/playlist_update.streams.db create mode 100644 tests/__data__/input/issues/streams_add.js create mode 100644 tests/__data__/input/issues/streams_add_approved.js create mode 100644 tests/__data__/input/issues/streams_edit_approved.js create mode 100644 tests/__data__/input/issues/streams_remove_approved.js create mode 100644 tests/__data__/input/logs/generators.log delete mode 100644 tests/__data__/input/logs/generators/categories.log delete mode 100644 tests/__data__/input/logs/generators/countries.log delete mode 100644 tests/__data__/input/logs/generators/languages.log delete mode 100644 tests/__data__/input/logs/generators/regions.log diff --git a/tests/__data__/expected/_readme.md b/tests/__data__/expected/_readme.md index cd7ec179f..7cd308c41 100644 --- a/tests/__data__/expected/_readme.md +++ b/tests/__data__/expected/_readme.md @@ -1,4 +1,4 @@ -# IPTV +# IPTV [](https://github.com/iptv-org/iptv/actions/workflows/update.yml) Collection of publicly available IPTV (Internet Protocol television) channels from all over the world. @@ -59,8 +59,8 @@ Same thing, but split up into separate files:
https://iptv-org.github.io/iptv/categories/auto.m3u
https://iptv-org.github.io/iptv/categories/animation.m3u
https://iptv-org.github.io/iptv/categories/auto.m3u
https://iptv-org.github.io/iptv/categories/business.m3u
https://iptv-org.github.io/iptv/categories/classic.m3u
https://iptv-org.github.io/iptv/categories/comedy.m3u
https://iptv-org.github.io/iptv/categories/outdoor.m3u
https://iptv-org.github.io/iptv/categories/relax.m3u
https://iptv-org.github.io/iptv/categories/religious.m3u
https://iptv-org.github.io/iptv/categories/series.m3u
https://iptv-org.github.io/iptv/categories/science.m3u
https://iptv-org.github.io/iptv/categories/series.m3u
https://iptv-org.github.io/iptv/categories/shop.m3u
https://iptv-org.github.io/iptv/categories/sports.m3u
https://iptv-org.github.io/iptv/categories/travel.m3u
https://iptv-org.github.io/iptv/countries/af.m3u
https://iptv-org.github.io/iptv/countries/al.m3u
https://iptv-org.github.io/iptv/countries/dz.m3u
https://iptv-org.github.io/iptv/countries/as.m3u
https://iptv-org.github.io/iptv/countries/ad.m3u
https://iptv-org.github.io/iptv/countries/ao.m3u
https://iptv-org.github.io/iptv/countries/ai.m3u
https://iptv-org.github.io/iptv/countries/aq.m3u
https://iptv-org.github.io/iptv/countries/ag.m3u
https://iptv-org.github.io/iptv/countries/ar.m3u
https://iptv-org.github.io/iptv/countries/am.m3u
https://iptv-org.github.io/iptv/countries/aw.m3u
https://iptv-org.github.io/iptv/countries/au.m3u
https://iptv-org.github.io/iptv/countries/at.m3u
https://iptv-org.github.io/iptv/countries/az.m3u
https://iptv-org.github.io/iptv/countries/bs.m3u
https://iptv-org.github.io/iptv/countries/bh.m3u
https://iptv-org.github.io/iptv/countries/bd.m3u
https://iptv-org.github.io/iptv/countries/bb.m3u
https://iptv-org.github.io/iptv/countries/by.m3u
https://iptv-org.github.io/iptv/countries/be.m3u
https://iptv-org.github.io/iptv/countries/bz.m3u
https://iptv-org.github.io/iptv/countries/bj.m3u
https://iptv-org.github.io/iptv/countries/bm.m3u
https://iptv-org.github.io/iptv/countries/bt.m3u
https://iptv-org.github.io/iptv/countries/bo.m3u
https://iptv-org.github.io/iptv/countries/bq.m3u
https://iptv-org.github.io/iptv/countries/ba.m3u
https://iptv-org.github.io/iptv/countries/bw.m3u
https://iptv-org.github.io/iptv/countries/bv.m3u
https://iptv-org.github.io/iptv/countries/br.m3u
https://iptv-org.github.io/iptv/countries/io.m3u
https://iptv-org.github.io/iptv/countries/vg.m3u
https://iptv-org.github.io/iptv/countries/bn.m3u
https://iptv-org.github.io/iptv/countries/bg.m3u
https://iptv-org.github.io/iptv/countries/bf.m3u
https://iptv-org.github.io/iptv/countries/bi.m3u
https://iptv-org.github.io/iptv/countries/kh.m3u
https://iptv-org.github.io/iptv/countries/cm.m3u
https://iptv-org.github.io/iptv/countries/ca.m3u
https://iptv-org.github.io/iptv/subdivisions/ca-on.m3u
https://iptv-org.github.io/iptv/countries/cv.m3u
https://iptv-org.github.io/iptv/countries/ky.m3u
https://iptv-org.github.io/iptv/countries/cf.m3u
https://iptv-org.github.io/iptv/countries/td.m3u
https://iptv-org.github.io/iptv/countries/cl.m3u
https://iptv-org.github.io/iptv/countries/cn.m3u
https://iptv-org.github.io/iptv/countries/cx.m3u
https://iptv-org.github.io/iptv/countries/cc.m3u
https://iptv-org.github.io/iptv/countries/co.m3u
https://iptv-org.github.io/iptv/countries/km.m3u
https://iptv-org.github.io/iptv/countries/ck.m3u
https://iptv-org.github.io/iptv/countries/cr.m3u
https://iptv-org.github.io/iptv/countries/hr.m3u
https://iptv-org.github.io/iptv/countries/cu.m3u
https://iptv-org.github.io/iptv/countries/cw.m3u
https://iptv-org.github.io/iptv/countries/cy.m3u
https://iptv-org.github.io/iptv/countries/cz.m3u
https://iptv-org.github.io/iptv/countries/cd.m3u
https://iptv-org.github.io/iptv/countries/dk.m3u
https://iptv-org.github.io/iptv/countries/dj.m3u
https://iptv-org.github.io/iptv/countries/dm.m3u
https://iptv-org.github.io/iptv/countries/do.m3u
https://iptv-org.github.io/iptv/countries/tl.m3u
https://iptv-org.github.io/iptv/countries/ec.m3u
https://iptv-org.github.io/iptv/countries/eg.m3u
https://iptv-org.github.io/iptv/countries/sv.m3u
https://iptv-org.github.io/iptv/countries/gq.m3u
https://iptv-org.github.io/iptv/countries/er.m3u
https://iptv-org.github.io/iptv/countries/ee.m3u
https://iptv-org.github.io/iptv/countries/et.m3u
https://iptv-org.github.io/iptv/countries/fk.m3u
https://iptv-org.github.io/iptv/countries/fo.m3u
https://iptv-org.github.io/iptv/countries/fj.m3u
https://iptv-org.github.io/iptv/countries/fi.m3u
https://iptv-org.github.io/iptv/countries/fr.m3u
https://iptv-org.github.io/iptv/countries/gf.m3u
https://iptv-org.github.io/iptv/countries/pf.m3u
https://iptv-org.github.io/iptv/countries/tf.m3u
https://iptv-org.github.io/iptv/countries/ga.m3u
https://iptv-org.github.io/iptv/countries/gm.m3u
https://iptv-org.github.io/iptv/countries/ge.m3u
https://iptv-org.github.io/iptv/countries/de.m3u
https://iptv-org.github.io/iptv/countries/gh.m3u
https://iptv-org.github.io/iptv/countries/gi.m3u
https://iptv-org.github.io/iptv/countries/gr.m3u
https://iptv-org.github.io/iptv/countries/gl.m3u
https://iptv-org.github.io/iptv/countries/gd.m3u
https://iptv-org.github.io/iptv/countries/gp.m3u
https://iptv-org.github.io/iptv/countries/gu.m3u
https://iptv-org.github.io/iptv/countries/gt.m3u
https://iptv-org.github.io/iptv/countries/gg.m3u
https://iptv-org.github.io/iptv/countries/gn.m3u
https://iptv-org.github.io/iptv/countries/gw.m3u
https://iptv-org.github.io/iptv/countries/gy.m3u
https://iptv-org.github.io/iptv/countries/ht.m3u
https://iptv-org.github.io/iptv/countries/hm.m3u
https://iptv-org.github.io/iptv/countries/hn.m3u
https://iptv-org.github.io/iptv/countries/hk.m3u
https://iptv-org.github.io/iptv/countries/hu.m3u
https://iptv-org.github.io/iptv/countries/is.m3u
https://iptv-org.github.io/iptv/countries/in.m3u
https://iptv-org.github.io/iptv/countries/id.m3u
https://iptv-org.github.io/iptv/countries/ir.m3u
https://iptv-org.github.io/iptv/countries/iq.m3u
https://iptv-org.github.io/iptv/countries/ie.m3u
https://iptv-org.github.io/iptv/countries/im.m3u
https://iptv-org.github.io/iptv/countries/il.m3u
https://iptv-org.github.io/iptv/countries/it.m3u
https://iptv-org.github.io/iptv/countries/ci.m3u
https://iptv-org.github.io/iptv/countries/jm.m3u
https://iptv-org.github.io/iptv/countries/jp.m3u
https://iptv-org.github.io/iptv/countries/je.m3u
https://iptv-org.github.io/iptv/countries/jo.m3u
https://iptv-org.github.io/iptv/countries/kz.m3u
https://iptv-org.github.io/iptv/countries/ke.m3u
https://iptv-org.github.io/iptv/countries/ki.m3u
https://iptv-org.github.io/iptv/countries/xk.m3u
https://iptv-org.github.io/iptv/countries/kw.m3u
https://iptv-org.github.io/iptv/countries/kg.m3u
https://iptv-org.github.io/iptv/countries/la.m3u
https://iptv-org.github.io/iptv/countries/lv.m3u
https://iptv-org.github.io/iptv/countries/lb.m3u
https://iptv-org.github.io/iptv/countries/ls.m3u
https://iptv-org.github.io/iptv/countries/lr.m3u
https://iptv-org.github.io/iptv/countries/ly.m3u
https://iptv-org.github.io/iptv/countries/li.m3u
https://iptv-org.github.io/iptv/countries/lt.m3u
https://iptv-org.github.io/iptv/countries/lu.m3u
https://iptv-org.github.io/iptv/countries/mo.m3u
https://iptv-org.github.io/iptv/countries/mg.m3u
https://iptv-org.github.io/iptv/countries/mw.m3u
https://iptv-org.github.io/iptv/countries/my.m3u
https://iptv-org.github.io/iptv/countries/mv.m3u
https://iptv-org.github.io/iptv/countries/ml.m3u
https://iptv-org.github.io/iptv/countries/mt.m3u
https://iptv-org.github.io/iptv/countries/mh.m3u
https://iptv-org.github.io/iptv/countries/mq.m3u
https://iptv-org.github.io/iptv/countries/mr.m3u
https://iptv-org.github.io/iptv/countries/mu.m3u
https://iptv-org.github.io/iptv/countries/yt.m3u
https://iptv-org.github.io/iptv/countries/mx.m3u
https://iptv-org.github.io/iptv/countries/fm.m3u
https://iptv-org.github.io/iptv/countries/md.m3u
https://iptv-org.github.io/iptv/countries/mc.m3u
https://iptv-org.github.io/iptv/countries/mn.m3u
https://iptv-org.github.io/iptv/countries/me.m3u
https://iptv-org.github.io/iptv/countries/ms.m3u
https://iptv-org.github.io/iptv/countries/ma.m3u
https://iptv-org.github.io/iptv/countries/mz.m3u
https://iptv-org.github.io/iptv/countries/mm.m3u
https://iptv-org.github.io/iptv/countries/na.m3u
https://iptv-org.github.io/iptv/countries/nr.m3u
https://iptv-org.github.io/iptv/countries/np.m3u
https://iptv-org.github.io/iptv/countries/nl.m3u
https://iptv-org.github.io/iptv/countries/nc.m3u
https://iptv-org.github.io/iptv/countries/nz.m3u
https://iptv-org.github.io/iptv/countries/ni.m3u
https://iptv-org.github.io/iptv/countries/ne.m3u
https://iptv-org.github.io/iptv/countries/ng.m3u
https://iptv-org.github.io/iptv/countries/nu.m3u
https://iptv-org.github.io/iptv/countries/nf.m3u
https://iptv-org.github.io/iptv/countries/kp.m3u
https://iptv-org.github.io/iptv/countries/mk.m3u
https://iptv-org.github.io/iptv/countries/mp.m3u
https://iptv-org.github.io/iptv/countries/no.m3u
https://iptv-org.github.io/iptv/countries/om.m3u
https://iptv-org.github.io/iptv/countries/pk.m3u
https://iptv-org.github.io/iptv/countries/pw.m3u
https://iptv-org.github.io/iptv/countries/ps.m3u
https://iptv-org.github.io/iptv/countries/pa.m3u
https://iptv-org.github.io/iptv/countries/pg.m3u
https://iptv-org.github.io/iptv/countries/py.m3u
https://iptv-org.github.io/iptv/countries/pe.m3u
https://iptv-org.github.io/iptv/countries/ph.m3u
https://iptv-org.github.io/iptv/countries/pn.m3u
https://iptv-org.github.io/iptv/countries/pl.m3u
https://iptv-org.github.io/iptv/countries/pt.m3u
https://iptv-org.github.io/iptv/countries/pr.m3u
https://iptv-org.github.io/iptv/countries/qa.m3u
https://iptv-org.github.io/iptv/countries/cg.m3u
https://iptv-org.github.io/iptv/countries/re.m3u
https://iptv-org.github.io/iptv/countries/ro.m3u
https://iptv-org.github.io/iptv/countries/ru.m3u
https://iptv-org.github.io/iptv/countries/rw.m3u
https://iptv-org.github.io/iptv/countries/re.m3u
https://iptv-org.github.io/iptv/countries/bl.m3u
https://iptv-org.github.io/iptv/countries/sh.m3u
https://iptv-org.github.io/iptv/countries/kn.m3u
https://iptv-org.github.io/iptv/countries/lc.m3u
https://iptv-org.github.io/iptv/countries/mf.m3u
https://iptv-org.github.io/iptv/countries/pm.m3u
https://iptv-org.github.io/iptv/countries/vc.m3u
https://iptv-org.github.io/iptv/countries/ws.m3u
https://iptv-org.github.io/iptv/countries/sm.m3u
https://iptv-org.github.io/iptv/countries/sa.m3u
https://iptv-org.github.io/iptv/countries/sn.m3u
https://iptv-org.github.io/iptv/countries/rs.m3u
https://iptv-org.github.io/iptv/countries/sc.m3u
https://iptv-org.github.io/iptv/countries/sl.m3u
https://iptv-org.github.io/iptv/countries/sg.m3u
https://iptv-org.github.io/iptv/countries/sx.m3u
https://iptv-org.github.io/iptv/countries/sk.m3u
https://iptv-org.github.io/iptv/countries/si.m3u
https://iptv-org.github.io/iptv/countries/sb.m3u
https://iptv-org.github.io/iptv/countries/so.m3u
https://iptv-org.github.io/iptv/countries/za.m3u
https://iptv-org.github.io/iptv/countries/gs.m3u
https://iptv-org.github.io/iptv/countries/kr.m3u
https://iptv-org.github.io/iptv/countries/ss.m3u
https://iptv-org.github.io/iptv/countries/es.m3u
https://iptv-org.github.io/iptv/countries/lk.m3u
https://iptv-org.github.io/iptv/countries/sd.m3u
https://iptv-org.github.io/iptv/countries/sr.m3u
https://iptv-org.github.io/iptv/countries/sj.m3u
https://iptv-org.github.io/iptv/countries/sz.m3u
https://iptv-org.github.io/iptv/countries/se.m3u
https://iptv-org.github.io/iptv/countries/ch.m3u
https://iptv-org.github.io/iptv/countries/sy.m3u
https://iptv-org.github.io/iptv/countries/st.m3u
https://iptv-org.github.io/iptv/countries/tw.m3u
https://iptv-org.github.io/iptv/countries/tj.m3u
https://iptv-org.github.io/iptv/countries/tz.m3u
https://iptv-org.github.io/iptv/countries/th.m3u
https://iptv-org.github.io/iptv/countries/tg.m3u
https://iptv-org.github.io/iptv/countries/tk.m3u
https://iptv-org.github.io/iptv/countries/to.m3u
https://iptv-org.github.io/iptv/countries/tt.m3u
https://iptv-org.github.io/iptv/countries/tn.m3u
https://iptv-org.github.io/iptv/countries/tr.m3u
https://iptv-org.github.io/iptv/countries/tm.m3u
https://iptv-org.github.io/iptv/countries/tc.m3u
https://iptv-org.github.io/iptv/countries/tv.m3u
https://iptv-org.github.io/iptv/countries/um.m3u
https://iptv-org.github.io/iptv/countries/vi.m3u
https://iptv-org.github.io/iptv/countries/ug.m3u
https://iptv-org.github.io/iptv/countries/ua.m3u
https://iptv-org.github.io/iptv/countries/ae.m3u
https://iptv-org.github.io/iptv/countries/uk.m3u
https://iptv-org.github.io/iptv/countries/us.m3u
https://iptv-org.github.io/iptv/countries/uy.m3u
https://iptv-org.github.io/iptv/countries/uz.m3u
https://iptv-org.github.io/iptv/countries/vu.m3u
https://iptv-org.github.io/iptv/countries/va.m3u
https://iptv-org.github.io/iptv/countries/ve.m3u
https://iptv-org.github.io/iptv/countries/vn.m3u
https://iptv-org.github.io/iptv/countries/wf.m3u
https://iptv-org.github.io/iptv/countries/eh.m3u
https://iptv-org.github.io/iptv/countries/ye.m3u
https://iptv-org.github.io/iptv/countries/zm.m3u
https://iptv-org.github.io/iptv/countries/zw.m3u
https://iptv-org.github.io/iptv/countries/ax.m3u
https://iptv-org.github.io/iptv/countries/int.m3u
https://iptv-org.github.io/iptv/regions/afr.m3u
https://iptv-org.github.io/iptv/regions/amer.m3u
https://iptv-org.github.io/iptv/regions/apac.m3u
https://iptv-org.github.io/iptv/regions/arab.m3u
https://iptv-org.github.io/iptv/regions/asean.m3u
https://iptv-org.github.io/iptv/regions/asia.m3u
https://iptv-org.github.io/iptv/regions/apac.m3u
https://iptv-org.github.io/iptv/regions/asean.m3u
https://iptv-org.github.io/iptv/regions/carib.m3u
https://iptv-org.github.io/iptv/regions/cas.m3u
https://iptv-org.github.io/iptv/regions/cenamer.m3u
https://iptv-org.github.io/iptv/regions/cas.m3u
https://iptv-org.github.io/iptv/regions/cis.m3u
https://iptv-org.github.io/iptv/regions/emea.m3u
https://iptv-org.github.io/iptv/regions/eur.m3u
https://iptv-org.github.io/iptv/regions/emea.m3u
https://iptv-org.github.io/iptv/regions/hispam.m3u
https://iptv-org.github.io/iptv/regions/lac.m3u
https://iptv-org.github.io/iptv/regions/latam.m3u
https://iptv-org.github.io/iptv/regions/lac.m3u
https://iptv-org.github.io/iptv/regions/maghreb.m3u
https://iptv-org.github.io/iptv/regions/mena.m3u
https://iptv-org.github.io/iptv/regions/mideast.m3u
https://iptv-org.github.io/iptv/regions/nam.m3u
https://iptv-org.github.io/iptv/regions/noram.m3u
https://iptv-org.github.io/iptv/regions/mena.m3u
https://iptv-org.github.io/iptv/regions/nord.m3u
https://iptv-org.github.io/iptv/regions/noram.m3u
https://iptv-org.github.io/iptv/regions/nam.m3u
https://iptv-org.github.io/iptv/regions/oce.m3u
https://iptv-org.github.io/iptv/regions/sas.m3u
https://iptv-org.github.io/iptv/regions/southam.m3u
https://iptv-org.github.io/iptv/regions/sas.m3u
https://iptv-org.github.io/iptv/regions/ssa.m3u
https://iptv-org.github.io/iptv/regions/wafr.m3u