fix whitespace issues in tests for #2049
This commit is contained in:
		
							parent
							
								
									6dfd683a0c
								
							
						
					
					
						commit
						1e3be8ada4
					
				| 
						 | 
					@ -35,15 +35,12 @@ def test_show_multi_test_fixture_setup_and_teardown_correctly_simple(testdir):
 | 
				
			||||||
    testdir.makepyfile(
 | 
					    testdir.makepyfile(
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        import pytest
 | 
					        import pytest
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        @pytest.fixture(scope = 'class')
 | 
					        @pytest.fixture(scope = 'class')
 | 
				
			||||||
        def fix():
 | 
					        def fix():
 | 
				
			||||||
            return object()
 | 
					            return object()
 | 
				
			||||||
            
 | 
					 | 
				
			||||||
        class TestClass:
 | 
					        class TestClass:
 | 
				
			||||||
            def test_one(self, fix):
 | 
					            def test_one(self, fix):
 | 
				
			||||||
                assert False
 | 
					                assert False
 | 
				
			||||||
            
 | 
					 | 
				
			||||||
            def test_two(self, fix):
 | 
					            def test_two(self, fix):
 | 
				
			||||||
                assert False
 | 
					                assert False
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
| 
						 | 
					@ -77,32 +74,23 @@ def test_show_multi_test_fixture_setup_and_teardown_same_as_setup_show(testdir):
 | 
				
			||||||
    testdir.makepyfile(
 | 
					    testdir.makepyfile(
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        import pytest
 | 
					        import pytest
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        @pytest.fixture(scope = 'session')
 | 
					        @pytest.fixture(scope = 'session')
 | 
				
			||||||
        def sess():
 | 
					        def sess():
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        @pytest.fixture(scope = 'module')
 | 
					        @pytest.fixture(scope = 'module')
 | 
				
			||||||
        def mod():
 | 
					        def mod():
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        @pytest.fixture(scope = 'class')
 | 
					        @pytest.fixture(scope = 'class')
 | 
				
			||||||
        def cls():
 | 
					        def cls():
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        @pytest.fixture(scope = 'function')
 | 
					        @pytest.fixture(scope = 'function')
 | 
				
			||||||
        def func():
 | 
					        def func():
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        def test_outside(sess, mod, cls, func):
 | 
					        def test_outside(sess, mod, cls, func):
 | 
				
			||||||
            assert True
 | 
					            assert True
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        class TestCls:
 | 
					        class TestCls:
 | 
				
			||||||
            def test_one(self, sess, mod, cls, func):
 | 
					            def test_one(self, sess, mod, cls, func):
 | 
				
			||||||
                assert True
 | 
					                assert True
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
            def test_two(self, sess, mod, cls, func):
 | 
					            def test_two(self, sess, mod, cls, func):
 | 
				
			||||||
                assert True
 | 
					                assert True
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue