mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			267 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			267 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import pytest
 | |
| import subprocess
 | |
| 
 | |
| def test_build_docs(tmpdir):
 | |
|     doctrees = tmpdir.join("doctrees")
 | |
|     htmldir = "html" #we want to keep the docs
 | |
|     subprocess.check_call([
 | |
|         "sphinx-build", "-q", "-bhtml",
 | |
|           "-d", str(doctrees), ".", str(htmldir)])
 |