Ejemplo n.º 1
0
 def setUp(self):
     TestAdapter.reset_calls()
     class Test(pyperry.Base):
         id = Field(type=int)
         name = Field()
         bar_id = Field()
         bar = associations.BelongsTo()
         reader = TestAdapter()
         writer = TestAdapter(foo='bar')
     self.Test = Test
     self.test = Test({ 'id': 1 })
Ejemplo n.º 2
0
    def setUp(self):
        TestAdapter.reset_calls()

        class Test(pyperry.Base):
            id = Field(type=int)
            name = Field()
            bar_id = Field()
            bar = associations.BelongsTo()
            reader = TestAdapter()
            writer = TestAdapter(foo='bar')

        self.Test = Test
        self.test = Test({'id': 1})
Ejemplo n.º 3
0
 def tearDown(self):
     self.cache.empty()
     TestAdapter.reset_calls()
Ejemplo n.º 4
0
 def tearDown(self):
     self.cache.empty()
     TestAdapter.reset_calls()
Ejemplo n.º 5
0
 def tearDown(self):
     TestAdapter.reset_calls()
Ejemplo n.º 6
0
 def tearDown(self):
     TestAdapter.reset_calls()