コード例 #1
0
def get_parametrised_tests(marks):
    y = YamlFile(**mock_args())

    spec = {"test_name": "a test"}

    gen = y.get_parametrized_items(spec, marks, [])

    return list(gen)
コード例 #2
0
def get_parametrised_tests(marks):
    args = mock_args()
    y = YamlFile.from_parent(args.parent, fspath=args.fspath)
    y.session = args.session

    spec = {"test_name": "a test", "stages": []}

    gen = _get_parametrized_items(y, spec, marks, [])

    return list(gen)
コード例 #3
0
def test_doc_string():
    args = mock_args()
    y = YamlFile.from_parent(args.parent, fspath=args.fspath)

    assert isinstance(y.obj.__doc__, str)