@pytest.mark.cmd
@pytest.mark.django_db
def test_update_tmserver_nosetting(capfd, po_directory, tp0):
 with pytest.raises(CommandError) as e:
  call_command('update_tmserver')
 assert ('POOTLE_TM_SERVER setting is missing.' in str(e))

@ pytest . mark . cmd @ pytest . mark . django_db def test_update_tmserver_nosetting ( capfd , po_directory , tp0 ) : with pytest . raises ( CommandError ) as e : call_command ( 'update_tmserver' ) assert ( 'POOTLE_TM_SERVER setting is missing.' in str ( e ) )
we need configured tm for anything to work .