@pytest.mark.cmd
@pytest.mark.django_db
def test_changed_languages_noargs_nochanges(capfd, project0_nongnu, store0):
 unit = store0.units.first()
 unit.target = 'CHANGED'
 unit.save()
 store0.sync()
 revision = Revision.get()
 (out, err) = capfd.readouterr()
 call_command('changed_languages')
 (out, err) = capfd.readouterr()
 assert ('(no known changes)' in err)
 assert (('Will show languages changed between revisions %d (exclusive) and %d (inclusive)' % (revision, revision)) in err)

@ pytest . mark . cmd @ pytest . mark . django_db def test_changed_languages_noargs_nochanges ( capfd , project0_nongnu , store0 ) : unit = store0 . units . first ( ) unit . target = 'CHANGED' unit . save ( ) store0 . sync ( ) revision = Revision . get ( ) ( out , err ) = capfd . readouterr ( ) call_command ( 'changed_languages' ) ( out , err ) = capfd . readouterr ( ) assert ( '(no known changes)' in err ) assert ( ( 'Will show languages changed between revisions %d (exclusive) and %d (inclusive)' % ( revision , revision ) ) in err )
get changed languages since last sync .