@pytest.mark.cmd
@pytest.mark.django_db
def test_update_stores_noargs(capfd, project0_nongnu, project1, language1):
 project1.delete()
 language1.delete()
 call_command('update_stores')
 (out, err) = capfd.readouterr()
 assert ('system DCTB SO DCTB /language0/project0/store0.po' in err)
 assert ('system DCTB UO DCTB language0' in err)
 call_command('update_stores')
 (out, err) = capfd.readouterr()
 assert ('system DCTB SO' not in err)
 assert ('system DCTB UO' not in err)

@ pytest . mark . cmd @ pytest . mark . django_db def test_update_stores_noargs ( capfd , project0_nongnu , project1 , language1 ) : project1 . delete ( ) language1 . delete ( ) call_command ( 'update_stores' ) ( out , err ) = capfd . readouterr ( ) assert ( 'system DCTB SO DCTB /language0/project0/store0.po' in err ) assert ( 'system DCTB UO DCTB language0' in err ) call_command ( 'update_stores' ) ( out , err ) = capfd . readouterr ( ) assert ( 'system DCTB SO' not in err ) assert ( 'system DCTB UO' not in err )
site wide update_stores .