Parcourir la source

Add warnings about vps/housing code requiring factorization

Ref #129 #131
Jocelyn Delalande il y a 6 ans
Parent
commit
d919708461
6 fichiers modifiés avec 45 ajouts et 0 suppressions
  1. 6 0
      housing/models.py
  2. 8 0
      housing/tests.py
  3. 7 0
      vpn/models.py
  4. 8 0
      vpn/tests.py
  5. 8 0
      vps/models.py
  6. 8 0
      vps/tests.py

+ 6 - 0
housing/models.py

@@ -11,6 +11,12 @@ from coin.configuration.models import Configuration
 # from coin.offers.backends import ValidateBackendType
 from coin import validation
 
+"""BIG FAT WARNING
+
+Ce code requiert une sévère factorisation avec vpn/models.py et vps/models.py
+
+"""
+
 
 class HousingConfiguration(Configuration):
     url_namespace = "housing"

+ 8 - 0
housing/tests.py

@@ -17,6 +17,14 @@ USING_POSTGRES = (settings.DATABASES['default']['ENGINE']
                   ==
                   'django.db.backends.postgresql_psycopg2')
 
+
+""" BIG FAT WARNING
+
+Ce code requiert une sévère factorisation avec vpn/tests.py et vps/tests.py
+
+"""
+
+
 class HousingTestCase(TestCase):
     fixtures = ['example_pools.json', 'offers.json']
 

+ 7 - 0
vpn/models.py

@@ -15,6 +15,13 @@ from coin.configuration.models import Configuration
 from coin import utils
 from coin import validation
 
+"""BIG FAT WARNING
+
+Ce code requiert une sévère factorisation avec housing/models.py et
+vps/models.py
+
+"""
+
 
 class VPNConfiguration(CoinLdapSyncMixin, Configuration):
     url_namespace = "vpn"

+ 8 - 0
vpn/tests.py

@@ -17,6 +17,14 @@ USING_POSTGRES = (settings.DATABASES['default']['ENGINE']
                   ==
                   'django.db.backends.postgresql_psycopg2')
 
+
+""" BIG FAT WARNING
+
+Ce code requiert une sévère factorisation avec housing/tests.py et vps/tests.py
+
+"""
+
+
 class VPNTestCase(TestCase):
     fixtures = ['example_pools.json', 'offers.json']
 

+ 8 - 0
vps/models.py

@@ -11,6 +11,14 @@ from coin.configuration.models import Configuration
 # from coin.offers.backends import ValidateBackendType
 from coin import validation
 
+
+"""BIG FAT WARNING
+
+Ce code requiert une sévère factorisation avec vpn/models.py et
+housing/models.py
+
+"""
+
 FINGERPRINT_TYPES = (
     ('ED25519', 'ED25519'),
     ('RSA', 'RSA'),

+ 8 - 0
vps/tests.py

@@ -13,6 +13,14 @@ from coin.members.tests import MemberTestsUtils
 
 from .models import VPSConfiguration
 
+
+""" BIG FAT WARNING
+
+Ce code requiert une sévère factorisation avec vpn/tests.py et housing/tests.py
+
+"""
+
+
 USING_POSTGRES = (settings.DATABASES['default']['ENGINE']
                   ==
                   'django.db.backends.postgresql_psycopg2')