raymondbutcher / pretf

Generate Terraform code with Python
https://pretf.readthedocs.io/
MIT License
104 stars 14 forks source link

Add tests for modules #3

Closed raymondbutcher closed 5 years ago

raymondbutcher commented 5 years ago

There are 2 cases in particular which will force me to figure out how relative module directories should work:

  1. include a module relative to the current directory
  2. include a module relative to another directory (such as ../src in the custom test)
raymondbutcher commented 5 years ago

I didn't bother doing 1 in a test because it's just source = "./something".

For 2 there is e2afe8e656babf8564f99ddb50248d4a79887653 (mirroring of another directory into the current directory) and 4daaeef1aa1e2d52c39ebc64a4276ef5063854f5 (testing a module in that directory as a relative path).