0

I'd like to test this function

i = "hello" and DEST should be an input

def INPUT_translator(i):
    trans = Translator()
    DEST = input("Translate to: ")
    il = trans.translate(i, dest=DEST)
    return il.text

what is the correct way to test the function

error when testing

1

expecting hello as output

vimuth
  • 5,064
  • 33
  • 79
  • 116
  • 3
    Does this answer your question? [How to test a function with input call?](https://stackoverflow.com/questions/35851323/how-to-test-a-function-with-input-call) – Adid Feb 05 '23 at 06:02

0 Answers0