Uploaded Test files
This commit is contained in:
		
							parent
							
								
									f584ad9d97
								
							
						
					
					
						commit
						2e81cb7d99
					
				
					 16627 changed files with 2065359 additions and 102444 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
"""
 | 
			
		||||
Module with tests for the serve post-processor
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
# Copyright (c) Jupyter Development Team.
 | 
			
		||||
# Distributed under the terms of the Modified BSD License.
 | 
			
		||||
 | 
			
		||||
import pytest
 | 
			
		||||
from ...tests.base import TestsBase
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TestServe(TestsBase):
 | 
			
		||||
    """Contains test functions for serve.py"""
 | 
			
		||||
 | 
			
		||||
    def test_constructor(self):
 | 
			
		||||
        """Can a ServePostProcessor be constructed?"""
 | 
			
		||||
        pytest.importorskip("tornado")
 | 
			
		||||
        try:
 | 
			
		||||
            from ..serve import ServePostProcessor
 | 
			
		||||
        except ImportError:
 | 
			
		||||
            print("Something weird is happening.\n" 
 | 
			
		||||
                  "Tornado is sometimes present, sometimes not.")
 | 
			
		||||
            raise
 | 
			
		||||
        ServePostProcessor()
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue