def test_added_docker_image_on_existing_script(): validator = ScriptValidator('temp_file', check_git=False) validator.old_script = {} validator.current_script = {'dockerimage': 'test_updated'} assert validator.is_docker_image_changed( ), "The script validator couldn't find the docker image as changed"
def test_removed_docker_image_on_existing_script(): validator = ScriptValidator("temp_file", check_git=False) validator.change_string = "- dockerimage: sadf" assert validator.is_docker_image_changed(), "The script validator couldn't find the docker image as changed"
def test_not_changed_docker_image_on_existing_script(): validator = ScriptValidator("temp_file", check_git=False) validator.change_string = "some text" assert validator.is_docker_image_changed() is False, "The script validator couldn't find the docker "\ "image as changed"