Coverage for cas_server/__init__.py: 60%

8 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2022-10-17 18:04 +0000

1# This program is distributed in the hope that it will be useful, but WITHOUT 

2# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 

3# FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 for 

4# more details. 

5# 

6# You should have received a copy of the GNU General Public License version 3 

7# along with this program; if not, write to the Free Software Foundation, Inc., 51 

8# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 

9# 

10# (c) 2015-2016 Valentin Samir 

11"""A django CAS server application""" 

12try: 

13 import django 

14except ModuleNotFoundError: 

15 django = None 

16 

17#: version of the application 

18VERSION = '2.0.0' 

19 

20if django is None or django.VERSION < (3, 2): 20 ↛ 22line 20 didn't jump to line 22, because the condition on line 20 was never true

21 #: path the the application configuration class 

22 default_app_config = 'cas_server.apps.CasAppConfig'