Skip to content

Instantly share code, notes, and snippets.

View abeloin's full-sized avatar

Alexandre Beloin abeloin

View GitHub Profile
@abeloin
abeloin / test_parse_anime.html
Created February 27, 2018 17:43
Test parse anime old behaviour
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test Results &mdash; py.test for test_parse_anime.test_series_parsing</title>
<style type="text/css">
html {
height: 100%
}
@abeloin
abeloin / test_parse_anime_old_behaviour.py
Created February 27, 2018 16:33
Test parse anime old behaviour
# coding=utf-8
"""Tests for medusa/test_list_associated_files.py."""
import medusa
from medusa.name_parser.parser import NameParser
import pytest
@pytest.mark.parametrize('p', [
{
'name': u'[HorribleSubs] Cardcaptor Sakura Clear Card - 08 [720p].mkv',
@abeloin
abeloin / 0001-Added-the-ability-to-test-the-old-behavior.patch
Created February 27, 2018 04:28
Added the ability to test the old behavior
From 4f3e0d11be7766203f0f3e0fe686c31b9fcf0511 Mon Sep 17 00:00:00 2001
From: Alexandre Beloin <alexandre.beloin@gmail.com>
Date: Mon, 26 Feb 2018 19:13:40 -0500
Subject: [PATCH] Added the ability to test the old behavior
---
medusa/name_parser/parser.py | 65 +++++++++++++++++-------------
tests/name_parser/test_parse_anime.py | 74 +++++++++++++++++++++++------------
2 files changed, 85 insertions(+), 54 deletions(-)
@abeloin
abeloin / parse_anime.py
Created February 25, 2018 21:24
py.test for anime
# coding=utf-8
"""Tests for medusa/test_list_associated_files.py."""
import pytest
import guessit
import medusa
from medusa import scene_exceptions
from medusa.common import Quality
### Keybase proof
I hereby claim:
* I am abeloin on github.
* I am abeloin (https://keybase.io/abeloin) on keybase.
* I have a public key ASC-gPJLBq-WyrLIaIRj9fn8vWhzQc_9P_Oj0Dbhr5B3Vgo
To claim this, I am signing this object: