Add VERSION to API docs and add test for VERSION

This commit is contained in:
Roman Mogilatov 2015-11-23 20:56:34 +02:00
parent 119ba9dda0
commit 524cd78c5f
3 changed files with 21 additions and 1 deletions

View File

@ -47,7 +47,11 @@ from .errors import UndefinedProviderError
from . import catalogs
catalog = catalogs
VERSION = '0.10.5'
VERSION = '0.11.0'
"""Version number that follows semantic versioning.
:type: str
"""
__all__ = (

View File

@ -1,6 +1,10 @@
API Documentation
=================
.. automodule:: dependency_injector
.. autodata:: VERSION
.. toctree::
:maxdepth: 2

View File

@ -1 +1,13 @@
"""Dependency injector unittests."""
import unittest2 as unittest
from dependency_injector import VERSION
class VersionTest(unittest.TestCase):
"""Version constant tests."""
def test_version_follows_semantic_versioning(self):
"""Test that version follows semantic versioning."""
self.assertEquals(len(VERSION.split('.')))