1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-26 09:39:01 +01:00

Renaming and moving files + fixed a bug in Lodel.settings imports

Lodel/sttings/__init__.py wasn't able to import files when called by manage.py
Renaming em to EditorialModel and moved Em* objects to EditorialModel/lib
Adding a first test (that do not pass because of syntax errors in Em* classes)
This commit is contained in:
Yann 2015-05-27 10:45:11 +02:00
commit 8f2a3655bb
9 changed files with 13 additions and 4 deletions

View file

View file

9
EditorialModel/test.py Normal file
View file

@ -0,0 +1,9 @@
from django.test import TestCase
from EditorialModel.lib.component import EmComponent
class ComponentTestCase(TestCase):
def setup(self):
testComp = EmComponent(2)
def component_instanciate_with_numeric_id(self):
self.assertEqual(testComp.id, 2)

View file

@ -1,13 +1,13 @@
from defaults import *
from Lodel.settings.defaults import *
DEBUG = True
if DEBUG:
from dev import *
from Lodel.settings.dev import *
else:
from production import *
from Lodel.settings.production import *
try:
from locale import *
from Lodel.settings.locale import *
except ImportError:
pass