tfscript/tests/test_valid_yaml.py

16 lines
437 B
Python
Raw Normal View History

2022-08-13 12:39:33 -04:00
"""
Tests that we can import and execute the most basic valid test file.
Uses: tests/validYAML.yaml
"""
import pytest
import tfscript.cli
from cli_test_helpers import ArgvContext, shell
class TestValidYaml:
def test_parseValidFile(self, tmp_path):
"""Parse the basic test file."""
with ArgvContext('tfscript', '--directory', str(tmp_path),
'-d', 'tests/validYAML.yaml'):
tfscript.cli.main()