Skip to content

pytest_metadata Prints to the specified text #9222

Answered by wang-qa
wang-qa asked this question in Q&A
Discussion options

You must be logged in to vote

aaa.py

def case(metadata):
    print("This is pytest metadata")


print(case)

run

PS E:\develop\auto-scripts\tmp> pytest .\aaa.py
Test session starts (platform: win32, Python 3.9.2, pytest 6.2.5, pytest-sugar 0.9.4)
rootdir: E:\develop\auto-scripts\tmp
plugins: allure-pytest-2.9.44, anyio-3.3.4, assume-2.4.3, cov-3.0.0, html-3.1.1, metadata-1.11.0, ordering-0.6, sugar-0.9.4
collecting ... 

Results (0.02s):
PS E:\develop\auto-scripts\tmp>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wang-qa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant