from django.test import TestCase

from rests.core.utils.model_inspector import ModelInspector
from rests.typescript.queryset.lookups import QuerysetLookups
from rests.typescript.queryset.queryset import Queryset
from rests.typescript.model.model import Model

from .models import Thing, ThingChild


# =================================
# Test Model Inspector
# ---------------------------------

class TestModelInspector(TestCase):

    def test(self):
        queryset_lookups = QuerysetLookups(model=ThingChild, model_pool=[ThingChild, Thing])
        for type_dec in queryset_lookups.type_declarations():
            pass
            # print(str(type_dec))

    def test_2(self):
        queryset = Queryset(model=Thing, model_pool=[ThingChild, Thing], type_url='abc')
        print(queryset.render())

    def test_3(self):
        model = Model(model=Thing, model_pool=[ThingChild, Thing], type_url='abc')
        print(model.render())
a205836fafaeb7f3ab6b3fa8c6f29e95f3ef7084
<mask token>


class TestModelInspector(TestCase):
    <mask token>
    <mask token>

    def test_3(self):
        model = Model(model=Thing, model_pool=[ThingChild, Thing], type_url
            ='abc')
        print(model.render())

<mask token>


class TestModelInspector(TestCase):
    <mask token>

    def test_2(self):
        queryset = Queryset(model=Thing, model_pool=[ThingChild, Thing],
            type_url='abc')
        print(queryset.render())

    def test_3(self):
        model = Model(model=Thing, model_pool=[ThingChild, Thing], type_url
            ='abc')
        print(model.render())

<mask token>


class TestModelInspector(TestCase):

    def test(self):
        queryset_lookups = QuerysetLookups(model=ThingChild, model_pool=[
            ThingChild, Thing])
        for type_dec in queryset_lookups.type_declarations():
            pass

    def test_2(self):
        queryset = Queryset(model=Thing, model_pool=[ThingChild, Thing],
            type_url='abc')
        print(queryset.render())

    def test_3(self):
        model = Model(model=Thing, model_pool=[ThingChild, Thing], type_url
            ='abc')
        print(model.render())

from django.test import TestCase
from rests.core.utils.model_inspector import ModelInspector
from rests.typescript.queryset.lookups import QuerysetLookups
from rests.typescript.queryset.queryset import Queryset
from rests.typescript.model.model import Model
from .models import Thing, ThingChild


class TestModelInspector(TestCase):

    def test(self):
        queryset_lookups = QuerysetLookups(model=ThingChild, model_pool=[
            ThingChild, Thing])
        for type_dec in queryset_lookups.type_declarations():
            pass

    def test_2(self):
        queryset = Queryset(model=Thing, model_pool=[ThingChild, Thing],
            type_url='abc')
        print(queryset.render())

    def test_3(self):
        model = Model(model=Thing, model_pool=[ThingChild, Thing], type_url
            ='abc')
        print(model.render())

from django.test import TestCase

from rests.core.utils.model_inspector import ModelInspector
from rests.typescript.queryset.lookups import QuerysetLookups
from rests.typescript.queryset.queryset import Queryset
from rests.typescript.model.model import Model

from .models import Thing, ThingChild


# =================================
# Test Model Inspector
# ---------------------------------

class TestModelInspector(TestCase):

    def test(self):
        queryset_lookups = QuerysetLookups(model=ThingChild, model_pool=[ThingChild, Thing])
        for type_dec in queryset_lookups.type_declarations():
            pass
            # print(str(type_dec))

    def test_2(self):
        queryset = Queryset(model=Thing, model_pool=[ThingChild, Thing], type_url='abc')
        print(queryset.render())

    def test_3(self):
        model = Model(model=Thing, model_pool=[ThingChild, Thing], type_url='abc')
        print(model.render())