Beispiel #1
0
def create_default_machinecategory(app, created_models, verbosity, db, **kwargs):
    if MachineCategory in created_models:
        if verbosity >= 2:
            print "Creating Default MachineCategory object"
        mc = MachineCategory(name='Default')
        mc.save(using=db)
    MachineCategory.objects.clear_cache()
Beispiel #2
0
 def test_create(self):
     machine_category = MachineCategory(name='test', datastore='dummy')
     machine_category.full_clean()
Beispiel #3
0
 def test_create(self):
     machine_category = MachineCategory(name='test', datastore='dummy')
     machine_category.full_clean()