예제 #1
0
파일: base_test.py 프로젝트: rbland/pyperry
 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 })
예제 #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})
예제 #3
0
 def tearDown(self):
     self.cache.empty()
     TestAdapter.reset_calls()
예제 #4
0
 def tearDown(self):
     self.cache.empty()
     TestAdapter.reset_calls()
예제 #5
0
파일: base_test.py 프로젝트: rbland/pyperry
 def tearDown(self):
     TestAdapter.reset_calls()
예제 #6
0
 def tearDown(self):
     TestAdapter.reset_calls()