* Add workflow test openai api * chore: add filename as attribute to each test case * chore: correct label * feat: create pytest.ini * chore: remote extra " * chore: rename workflow to group similar type * chore: remove auto build on push to main * chore: rename job --------- Co-authored-by: Hien To <tominhhien97@gmail.com> Co-authored-by: Van-QA <van@jan.ai>
7 lines
288 B
Python
7 lines
288 B
Python
def pytest_collection_modifyitems(items):
|
|
for item in items:
|
|
# add the name of the file (without extension) as a marker
|
|
filename = item.nodeid.split("::")[0].split("/")[-1].replace(".py", "")
|
|
marker = pytest.mark.file(filename)
|
|
item.add_marker(marker)
|