@pytest.mark.cmd
@pytest.mark.django_db
def test_dump_stop_level(capfd):
 call_command('dump', '--stats', '--stop-level=1')
 (out, err) = capfd.readouterr()
 assert ('None,None' in out)
 assert out.startswith('/')
 assert ('/language0/project0/' in out)
 assert ('/language1/project0/' in out)
 assert ('/projects/project0/' in out)
 assert ('/language0/project0/store0.po' not in out)
 assert ('/language0/project0/subdir0' not in out)

@ pytest . mark . cmd @ pytest . mark . django_db def test_dump_stop_level ( capfd ) : call_command ( 'dump' , '--stats' , '--stop-level=1' ) ( out , err ) = capfd . readouterr ( ) assert ( 'None,None' in out ) assert out . startswith ( '/' ) assert ( '/language0/project0/' in out ) assert ( '/language1/project0/' in out ) assert ( '/projects/project0/' in out ) assert ( '/language0/project0/store0.po' not in out ) assert ( '/language0/project0/subdir0' not in out )
set the depth for data .