Permalink
Browse files

some nocovers

  • Loading branch information...
1 parent b89dcb5 commit 1dacb318c511b274290659ecfc9e806293288a0c @stefanfoulis committed Aug 28, 2011
Showing with 3 additions and 6 deletions.
  1. +3 −6 filer/__init__.py
View
@@ -1,16 +1,13 @@
#-*- coding: utf-8 -*-
-"""
-django-filer - file and image management for django projects
-"""
-__version_info__ = {
+__version_info__ = { # pragma: nocover
'major': 0,
'minor': 9,
'micro': 0,
'releaselevel': 'alpha',
'serial': 1
}
-def get_version(short=False):
+def get_version(short=False): # pragma: nocover
assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final')
vers = ["%(major)i.%(minor)i" % __version_info__, ]
if __version_info__['micro']:
@@ -19,4 +16,4 @@ def get_version(short=False):
vers.append('%s%i' % (__version_info__['releaselevel'][0], __version_info__['serial']))
return ''.join(vers)
-__version__ = get_version()
+__version__ = get_version() # pragma: nocover

0 comments on commit 1dacb31

Please sign in to comment.