@pytest.mark.cmd
@pytest.mark.django_db
def test_changed_languages_noargs(capfd):
 revision = Revision.get()
 call_command('changed_languages')
 (out, err) = capfd.readouterr()
 assert (out == u'language0,language1,templates\n')
 assert (('Will show languages changed between revisions -1 (exclusive) and %d (inclusive)' % revision) in err)

@ pytest . mark . cmd @ pytest . mark . django_db def test_changed_languages_noargs ( capfd ) : revision = Revision . get ( ) call_command ( 'changed_languages' ) ( out , err ) = capfd . readouterr ( ) assert ( out == u'language0,language1,templates\n' ) assert ( ( 'Will show languages changed between revisions -1 (exclusive) and %d (inclusive)' % revision ) in err )
get changed languages since last sync .