def test_not_touched_id_validation(): validator = StructureValidator( file_path="./Tests/setup/Playbooks.playbook-invalid.yml") change_string = "some other text" assert validator.is_id_not_modified(change_string=change_string), \ "Found the ID as changed although it is not"
def test_removed_id_validation(): validator = StructureValidator( file_path="./Tests/setup/Playbooks.playbook-invalid.yml") change_string = "- id: text" assert validator.is_id_not_modified(change_string=change_string) is False, \ "Didn't find the id as updated in file"
def test_not_touched_id_validation(): validator = StructureValidator(file_path="./Tests/setup/Playbooks.playbook-invalid.yml") change_string = "some other text" assert validator.is_id_not_modified(change_string=change_string), \ "Found the ID as changed although it is not"
def test_removed_id_validation(): validator = StructureValidator(file_path="./Tests/setup/Playbooks.playbook-invalid.yml") change_string = "- id: text" assert validator.is_id_not_modified(change_string=change_string) is False, \ "Didn't find the id as updated in file"