Skip to content

Commit

Permalink
Ensure path independence in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Dec 13, 2023
1 parent cc93e3a commit b2c9e14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/turbine_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


import os
from pathlib import Path

import attr
import numpy as np
Expand Down Expand Up @@ -587,9 +588,9 @@ def test_asdict(sample_inputs_fixture: SampleInputs):

def test_build_turbine_dict():

orig_file_path = "floris/turbine_library/iea_10MW.yaml"
test_turb_name = "test_iea_10MW"
test_file_path = "tests/"
orig_file_path = Path(__file__).resolve().parent / "data" / "nrel_5MW_custom.yaml"
test_turb_name = "test_turbine_export"
test_file_path = "."

in_dict = yaml.safe_load( open(orig_file_path, "r") )

Expand Down

0 comments on commit b2c9e14

Please sign in to comment.