(self, folder, variables, var_files, expected_output, options)
| 240 | ], |
| 241 | ) |
| 242 | def test_apply(self, folder, variables, var_files, expected_output, options): |
| 243 | tf = Terraform( |
| 244 | working_dir=current_path, variables=variables, var_file=var_files |
| 245 | ) |
| 246 | tf.init(folder) |
| 247 | ret, out, err = tf.apply(folder, **options) |
| 248 | assert ret == 0 |
| 249 | assert expected_output in out.replace("\n", "").replace(" ", "") |
| 250 | assert err == "" |
| 251 | |
| 252 | def test_apply_with_var_file(self, caplog: LogCaptureFixture): |
| 253 | with caplog.at_level(logging.INFO): |