mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 18:08:03 +03:00 
			
		
		
		
	made it possible to pass args to runtests to specify the Testcase, or more specifically the mtest_method to run.
This commit is contained in:
		
							parent
							
								
									a336f09157
								
							
						
					
					
						commit
						f708b1a11c
					
				| 
						 | 
				
			
			@ -27,7 +27,11 @@ def main():
 | 
			
		|||
        failures = TestRunner(['djangorestframework'])
 | 
			
		||||
    else:
 | 
			
		||||
        test_runner = TestRunner()
 | 
			
		||||
        failures = test_runner.run_tests(['djangorestframework'])
 | 
			
		||||
        if len(sys.argv) > 1:
 | 
			
		||||
            test_case = '.' + sys.argv[1]
 | 
			
		||||
        else:
 | 
			
		||||
            test_case = ''
 | 
			
		||||
        failures = test_runner.run_tests(['djangorestframework' + test_case])
 | 
			
		||||
 | 
			
		||||
    sys.exit(failures)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user