2024-01-09 11:34:46 -06:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
|
|
import json
|
|
|
|
|
import pytest
|
|
|
|
|
|
2024-04-18 04:31:59 -05:00
|
|
|
from rocprofiler_sdk.pytest_utils.dotdict import dotdict
|
|
|
|
|
|
2024-01-09 11:34:46 -06:00
|
|
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
|
|
|
parser.addoption(
|
|
|
|
|
"--input",
|
|
|
|
|
action="store",
|
|
|
|
|
default="async-copy-tracing-test.json",
|
|
|
|
|
help="Input JSON",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
|
def input_data(request):
|
|
|
|
|
filename = request.config.getoption("--input")
|
|
|
|
|
with open(filename, "r") as inp:
|
2024-04-18 04:31:59 -05:00
|
|
|
return dotdict(json.load(inp))
|