# HG changeset patch # User Sverre Rabbelier # Date 1236359571 0 # Node ID f8457a410d1f374ae49e65c6c83cc24ca77bc38e # Parent 8203c805edc78b4c3581beb40430351a031c5af6 Split out test_model model and logic into it's own module Patch by: Sverre Rabbelier diff -r 8203c805edc7 -r f8457a410d1f tests/app/soc/logic/models/test_base.py --- a/tests/app/soc/logic/models/test_base.py Fri Mar 06 15:52:12 2009 +0000 +++ b/tests/app/soc/logic/models/test_base.py Fri Mar 06 17:12:51 2009 +0000 @@ -23,24 +23,9 @@ import unittest from google.appengine.api import users -from google.appengine.ext import db -from soc.logic.models import base - - -class TestModel(db.Model): - """Simpel test model. - """ - - value = db.IntegerProperty() - - -class TestModelLogic(base.Logic): - """Simple test logic. - """ - - def __init__(self): - super(TestModelLogic, self).__init__(TestModel) +from tests.app.soc.logic.models.test_model import TestModelLogic +from tests.app.soc.models.test_model import TestModel class UserTest(unittest.TestCase): diff -r 8203c805edc7 -r f8457a410d1f tests/app/soc/logic/models/test_model.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/app/soc/logic/models/test_model.py Fri Mar 06 17:12:51 2009 +0000 @@ -0,0 +1,32 @@ +#!/usr/bin/python2.5 +# +# Copyright 2009 the Melange authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +__authors__ = [ + '"Sverre Rabbelier" ', + ] + + +from soc.logic.models import base +from tests.app.soc.models.test_model import TestModel + + +class TestModelLogic(base.Logic): + """Simple test logic. + """ + + def __init__(self): + super(TestModelLogic, self).__init__(TestModel) diff -r 8203c805edc7 -r f8457a410d1f tests/app/soc/models/__init__.py diff -r 8203c805edc7 -r f8457a410d1f tests/app/soc/models/test_model.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/app/soc/models/test_model.py Fri Mar 06 17:12:51 2009 +0000 @@ -0,0 +1,30 @@ +#!/usr/bin/python2.5 +# +# Copyright 2009 the Melange authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +__authors__ = [ + '"Sverre Rabbelier" ', + ] + + +from google.appengine.ext import db + + +class TestModel(db.Model): + """Simpel test model. + """ + + value = db.IntegerProperty()