from middleware.models import SubtypingRow, SubtypingResult
from tests.constants import BEAUTIFY_VF_SEROTYPE

def test_models():
    subtyping_result = [
        SubtypingRow(
            analysis=d['analysis'],
            contigid=d['contigid'],
            filename=d['filename'],
            hitcutoff=str(d['hitcutoff']),
            hitname=d['hitname'],
            hitorientation=d['hitorientation'],
            hitstart=str(d['hitstart']),
            hitstop=str(d['hitstop'])
        )
    for d in BEAUTIFY_VF_SEROTYPE]
    subtyping_result.validate()

@@ -136,21 +136,19 @@
 btyping_
-resul
+lis
 t = %5B%0A  
@@ -524,16 +524,92 @@
 ROTYPE%5D%0A
+    subtyping_result = SubtypingResult(%0A        rows = subtyping_list%0A    )%0A
     subt

convert to the main model before validate