mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-16 19:40:59 +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
|
from . import catalogs
|
||||||
catalog = catalogs
|
catalog = catalogs
|
||||||
|
|
||||||
VERSION = '0.10.5'
|
VERSION = '0.11.0'
|
||||||
|
"""Version number that follows semantic versioning.
|
||||||
|
|
||||||
|
:type: str
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
API Documentation
|
API Documentation
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
.. automodule:: dependency_injector
|
||||||
|
|
||||||
|
.. autodata:: VERSION
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
|
|
|
@ -1 +1,13 @@
|
||||||
"""Dependency injector unittests."""
|
"""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