@pytest.mark.cmd
@pytest.mark.django_db
def test_add_vfolders_emptyfile(capfd, tmpdir):
 p = tmpdir.mkdir('sub').join('empty.json')
 p.write('{}')
 call_command('add_vfolders', os.path.join(p.dirname, p.basename))
 (out, err) = capfd.readouterr()
 assert ('Importing virtual folders' in out)

@ pytest . mark . cmd @ pytest . mark . django_db def test_add_vfolders_emptyfile ( capfd , tmpdir ) : p = tmpdir . mkdir ( 'sub' ) . join ( 'empty.json' ) p . write ( '{}' ) call_command ( 'add_vfolders' , os . path . join ( p . dirname , p . basename ) ) ( out , err ) = capfd . readouterr ( ) assert ( 'Importing virtual folders' in out )
load an empty vfolder .