Simplify tests by figuring out fixture dir automatically

We always use the same directory for terraform fixtures, so it's quite
easy to figure out its path from a pytest fixture by inspecting the
stack. This commit implements this functionality and decreases the
amount of boilerplate needed to write a test.

(Ported from fast)
This commit is contained in:
Julio Castillo
2022-01-10 23:29:15 +01:00
parent 78102b2acf
commit f0773d4883
74 changed files with 191 additions and 701 deletions

3
.gitignore vendored
View File

@@ -17,4 +17,5 @@ terraform-ls.tf
bundle.zip
.DS_Store
**/packer_cache
**/*.pkrvars.hcl
**/*.pkrvars.hcl
fixture_*