Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 6 def greeting ( name ) : print ( Hi , , name ) print ( extra ) @pytest.mark.parametrize

Question 16
def greeting(name):
print("Hi,", name)
print("extra")
@pytest.mark.parametrize("name, output,[("Kortni", redacted),("Maggie", redacted)])
def test_greeting(redacted):
greeting(name)
captured_stdout, captured_stderr = capsys.readouterr ()
assert captured_stdout.strip()== output
What parameter(s) would this pytest function require?
Case sensitivity is REQUIRED
Type in alphabetical order in a comma separated list if multiple values used - type "none" if you don't think any necessary t*
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago