mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	[1.7.x] cater for running tests from another directory than tests - applying existing pattern to newly added test_testcase_ordering as well
Backport of d11e836203 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							0c3a23d2b9
						
					
				
				
					commit
					d0c6016367
				
			| @@ -104,6 +104,7 @@ class DiscoverRunnerTest(TestCase): | |||||||
|         self.assertEqual(count, 0) |         self.assertEqual(count, 0) | ||||||
|  |  | ||||||
|     def test_testcase_ordering(self): |     def test_testcase_ordering(self): | ||||||
|  |         with change_cwd(".."): | ||||||
|             suite = DiscoverRunner().build_suite(["test_discovery_sample/"]) |             suite = DiscoverRunner().build_suite(["test_discovery_sample/"]) | ||||||
|             self.assertEqual( |             self.assertEqual( | ||||||
|                 suite._tests[0].__class__.__name__, |                 suite._tests[0].__class__.__name__, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user