Skip to content

Commit 54ace89

Browse files
authored
Merge branch 'develop' into fix/trash-to-origin-dir-path-bk
2 parents f6fab44 + 7c44c4c commit 54ace89

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/trestle/core/commands/validate_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,7 @@ def test_validate_component_definition(
505505
test_utils.execute_command_and_assert(validate_command, 0, monkeypatch)
506506

507507

508-
@pytest.mark.skip()
509-
def xest_validate_component_definition_ports(
508+
def test_validate_component_definition_ports(
510509
tmp_trestle_dir: pathlib.Path, testdata_dir: pathlib.Path, monkeypatch: MonkeyPatch
511510
) -> None:
512511
"""Test validation of ports in Component Definition."""
@@ -525,7 +524,6 @@ def xest_validate_component_definition_ports(
525524
test_utils.execute_command_and_assert(validate_command, 0, monkeypatch)
526525

527526

528-
@pytest.mark.skip()
529527
def test_validate_component_definition_ports_invalid(
530528
tmp_trestle_dir: pathlib.Path, testdata_dir: pathlib.Path, monkeypatch: MonkeyPatch
531529
) -> None:
@@ -542,7 +540,7 @@ def test_validate_component_definition_ports_invalid(
542540

543541
shutil.copyfile(spth, tpth)
544542
validate_command = f'trestle validate -f {tpth}'
545-
test_utils.execute_command_and_assert(validate_command, 1, monkeypatch)
543+
test_utils.execute_command_and_assert(validate_command, CmdReturnCodes.OSCAL_VALIDATION_ERROR.value, monkeypatch)
546544

547545

548546
def test_validate_mapping_simple(

0 commit comments

Comments
 (0)