new tests architecture

This commit is contained in:
Romain Bignon 2010-08-13 17:27:22 +02:00
commit 9c7f585753
7 changed files with 25 additions and 79 deletions

View file

@ -77,8 +77,6 @@ class BaseBackend(object):
STORAGE = {}
# Browser class
BROWSER = None
# Test class
TEST = None
# Supported objects to fill
# The key is the class and the value the method to call to fill
# Method prototype: method(object, fields)
@ -194,11 +192,6 @@ class BaseBackend(object):
return True
return False
def get_test(self):
if not self.TEST:
return None
return self.TEST(self)
def fillobj(self, obj, fields):
missing_fields = []
for field in fields: