I am making a to-do list application and one of the commands in this application is to print the help heres my code:
@app.command()
def help():
y="""""Usage :-\n
$ ./task add 2 hello world\t # Add a new item with priority 2 and text \"hello world\" to the list\n
$ ./task ls\t # Show incomplete priority list items sorted by priority in ascending order
$ ./task del INDEX\t # Delete the incomplete item with the given index\n
$ ./task done INDEX\t # Mark the incomplete item with the given index as complete\n
$ ./task help\t # Show usage\n
$ ./task report\t # Statistics"""
print(y)
When I run this code I get the normal output which can be imagined But when I run npm automation test given by my internship I get a different output in recieved
Here are the Expected and Receieved output:
Expected: StringContaining "Usage :-
$ ./task add 2 hello world # Add a new item with priority 2 and text \"hello world\" to the list
$ ./task ls # Show incomplete priority list items sorted by priority in ascending order
$ ./task del INDEX # Delete the incomplete item with the given index
$ ./task done INDEX # Mark the incomplete item with the given index as complete
$ ./task help # Show usage
$ ./task report # Statistics"
Received: "Usage :-···
$ ./task add 2 hello world # Add a new item with priority 2 and text \"hello world\" to the list···
$ ./task ls # Show incomplete priority list items sorted by priority in ascending order···
$ ./task del INDEX # Delete the incomplete item with the given index···
$ ./task done INDEX # Mark the incomplete item with the given index as complete···
$ ./task help # Show usage···
$ ./task report # Statistics·
"
As you can see im getting these strange dots on my output while running npm tests Any help on this would be appreciated