Skip to content

Commit

Permalink
chore(consume): rename hive test suites; improve hiveview commands (#925
Browse files Browse the repository at this point in the history
)
  • Loading branch information
danceratopz authored Oct 30, 2024
1 parent 4e9e371 commit 9a10929
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/pytest_plugins/consume/hive_simulators/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def hive_consume_command(

@pytest.fixture(scope="function")
def eest_consume_commands(
request: pytest.FixtureRequest,
test_suite_name: str,
client_type: ClientType,
test_case: TestCaseIndexFile | TestCaseStream,
Expand All @@ -71,8 +72,9 @@ def eest_consume_commands(
Commands to run the test within EEST using a hive dev back-end.
"""
hive_dev = f"./hive --dev --client-file configs/prague.yaml --client {client_type.name}"
input_source = request.config.getoption("fixture_source")
consume = (
f'consume {test_suite_name.split("-")[-1]} -v --input latest-develop-release -k '
f'consume {test_suite_name.split("-")[-1]} -v --input={input_source} -k '
f'"{test_case.id}"'
)
return [hive_dev, consume]
Expand Down
4 changes: 2 additions & 2 deletions src/pytest_plugins/consume/hive_simulators/engine/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def test_suite_name() -> str:
"""
The name of the hive test suite used in this simulator.
"""
return "eest-engine"
return "eest/consume-engine"


@pytest.fixture(scope="module")
def test_suite_description() -> str:
"""
The description of the hive test suite used in this simulator.
"""
return "Execute blockchain tests by against clients using the Engine API."
return "Execute blockchain tests against clients using the Engine API."


@pytest.fixture(scope="function")
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_plugins/consume/hive_simulators/rlp/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_suite_name() -> str:
"""
The name of the hive test suite used in this simulator.
"""
return "eest-block-rlp"
return "eest/consume-rlp"


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_plugins/execute/rpc/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def test_suite_name() -> str:
"""
The name of the hive test suite used in this simulator.
"""
return "EEST Execute Test, Hive Mode"
return "eest/execute, hive mode"


@pytest.fixture(scope="session")
Expand Down

0 comments on commit 9a10929

Please sign in to comment.