Question: Write test case functions in pytest to this python code. main.py 1 def convert_roman(num): #gets integer 2 value = (100, 90, 50, 40, 10, 9,

 Write test case functions in pytest to this python code. main.py

Write test case functions in pytest to this python code.

main.py 1 def convert_roman(num): #gets integer 2 value = (100, 90, 50, 40, 10, 9, 5, 4, 1) #for numbers 3 symbol ('c', 'c', 'l', 'XL', 'X', 'IX', 'V', 'IV', 'I') #for roman number 4 roman_num= 5 for i in range(len(value)): #Loop to check teh posibilities 6 count = int(num / value[i]) 7 roman_num += symbol[i] count 8 value[i] count 9 return roman_num 10 print(convert_roman (25)) #25 is passed as the input and convert it into Roman num input XXV ...Program finished with exit code 0 Press ENTER to exit console

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!