mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 09:57:37 +03:00 
			
		
		
		
	Make some style fixes in tests
This commit is contained in:
		
							parent
							
								
									f5680ff032
								
							
						
					
					
						commit
						e68df7167f
					
				| 
						 | 
					@ -1,13 +1 @@
 | 
				
			||||||
"""Dependency injector unittests."""
 | 
					"""Dependency injector unit tests."""
 | 
				
			||||||
 | 
					 | 
				
			||||||
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('.')))
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
"""Dependency injector providers unittests."""
 | 
					"""Dependency injector providers unit tests."""
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
"""Dependency injector base providers unittests."""
 | 
					"""Dependency injector base providers unit tests."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import unittest2 as unittest
 | 
					import unittest2 as unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,11 @@
 | 
				
			||||||
"""Dependency injector callable providers unittests."""
 | 
					"""Dependency injector callable providers unit tests."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import unittest2 as unittest
 | 
					import unittest2 as unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from dependency_injector import providers, errors
 | 
					from dependency_injector import (
 | 
				
			||||||
 | 
					    providers,
 | 
				
			||||||
 | 
					    errors,
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CallableTests(unittest.TestCase):
 | 
					class CallableTests(unittest.TestCase):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,11 @@
 | 
				
			||||||
"""Dependency injector creational providers unittests."""
 | 
					"""Dependency injector creational providers unit tests."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import unittest2 as unittest
 | 
					import unittest2 as unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from dependency_injector import providers, errors
 | 
					from dependency_injector import (
 | 
				
			||||||
 | 
					    providers,
 | 
				
			||||||
 | 
					    errors,
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Example(object):
 | 
					class Example(object):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
"""Dependency injector static providers unittests."""
 | 
					"""Dependency injector static providers unit tests."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import unittest2 as unittest
 | 
					import unittest2 as unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,8 +2,10 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import unittest2 as unittest
 | 
					import unittest2 as unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from dependency_injector import providers
 | 
					from dependency_injector import (
 | 
				
			||||||
from dependency_injector import errors
 | 
					    providers,
 | 
				
			||||||
 | 
					    errors,
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class IsProviderTests(unittest.TestCase):
 | 
					class IsProviderTests(unittest.TestCase):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
"""Common unittests."""
 | 
					"""Dependency injector common unit tests."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import unittest2 as unittest
 | 
					import unittest2 as unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,8 +6,6 @@ from dependency_injector import VERSION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class VersionTest(unittest.TestCase):
 | 
					class VersionTest(unittest.TestCase):
 | 
				
			||||||
    """Version constant tests."""
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_version_follows_semantic_versioning(self):
 | 
					    def test_version_follows_semantic_versioning(self):
 | 
				
			||||||
        """Test that version follows semantic versioning."""
 | 
					 | 
				
			||||||
        self.assertEquals(len(VERSION.split('.')), 3)
 | 
					        self.assertEquals(len(VERSION.split('.')), 3)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user