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:
parent
9dab9ce22f
commit
8f2a3655bb
9 changed files with 13 additions and 4 deletions
0
EditorialModel/__init__.py
Normal file
0
EditorialModel/__init__.py
Normal file
0
EditorialModel/lib/__init__.py
Normal file
0
EditorialModel/lib/__init__.py
Normal file
9
EditorialModel/test.py
Normal file
9
EditorialModel/test.py
Normal 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)
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue