mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	SimpleTestCase.databases makes it possible to determine the set of databases required to run the discovered tests.
		
			
				
	
	
		
			19 lines
		
	
	
		
			317 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			317 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import unittest
 | |
| 
 | |
| 
 | |
| class NoDatabaseTests(unittest.TestCase):
 | |
|     def test_nothing(self):
 | |
|         pass
 | |
| 
 | |
| 
 | |
| class DefaultDatabaseTests(NoDatabaseTests):
 | |
|     databases = {'default'}
 | |
| 
 | |
| 
 | |
| class OtherDatabaseTests(NoDatabaseTests):
 | |
|     databases = {'other'}
 | |
| 
 | |
| 
 | |
| class AllDatabasesTests(NoDatabaseTests):
 | |
|     databases = '__all__'
 |