<reponame>wlnicholson/neoload-cli<filename>tests/test_query_functions.py
import pytest
from utils import *
from os import path

@pytest.mark.queries
def test_query_outfile_for_bench():

    # Step: getid
    testId = assertOutput(
        exitCode=0,
        printOutput=True,
        args={
            '--infile '+ os.path.abspath("tests/example_pytests/async.stdout") : None,
            '--query': 'testid'
        })
    assert (testId is not None and len(testId) > 0), "Could not obtain a proper bench ID."

import pytest
from utils import *
from os import path

@pytest.mark.queries
def test_query_outfile_for_bench():

    # Step: getid
    testId = assertOutput(
        exitCode=0,
        printOutput=True,
        args={
            '--infile '+ os.path.abspath("tests/example_pytests/async.stdout") : None,
            '--query': 'testid'
        })
    assert (testId is not None and len(testId) > 0), "Could not obtain a proper bench ID."
# Step: getid