Skip to content

Commit

Permalink
Restructurize test files
Browse files Browse the repository at this point in the history
  • Loading branch information
refeed committed Oct 24, 2023
1 parent 008d13c commit 4584bda
Show file tree
Hide file tree
Showing 26 changed files with 8 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 1 addition & 7 deletions tests/providers/terraform_plan/test_terraform_plan.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import json
import os
import pytest

from tirith.providers.terraform_plan import handler


def load_terraform_plan_json(json_path):
with open(f"{os.path.dirname(os.path.abspath(__file__))}/{json_path}", "r") as fp:
return json.load(fp)
from utils import load_terraform_plan_json


input_data = load_terraform_plan_json("input.json")
Expand Down
7 changes: 7 additions & 0 deletions tests/providers/terraform_plan/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import json
import os


def load_terraform_plan_json(json_path):
with open(f"{os.path.dirname(os.path.abspath(__file__))}/fixtures/{json_path}", "r") as fp:
return json.load(fp)

0 comments on commit 4584bda

Please sign in to comment.