mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
Add VERSION to API docs and add test for VERSION
This commit is contained in:
parent
119ba9dda0
commit
524cd78c5f
|
@ -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__ = (
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
API Documentation
|
||||
=================
|
||||
|
||||
.. automodule:: dependency_injector
|
||||
|
||||
.. autodata:: VERSION
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
|
|
|
@ -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('.')))
|
||||
|
|
Loading…
Reference in New Issue
Block a user