Skip to content

Commit

Permalink
Update Python unit tests after removing function
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Burghardt <[email protected]>
  • Loading branch information
marcusburghardt committed Dec 13, 2024
1 parent ba78ede commit 38f80a0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/unit/ssg-module/test_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from ssg.variables import (
get_variable_files_in_folder,
get_variable_files,
get_all_variables_options,
get_variable_options,
get_variables_by_products,
get_variable_values,
Expand Down Expand Up @@ -43,23 +42,6 @@ def test_get_variable_files(tmp_path):
assert all(os.path.basename(file) == "test.var" for file in result)


def test_get_all_variables_options(tmp_path):
content_dir = tmp_path / "content"
benchmarks = ["app", "app/rules"]
for benchmark_folder in benchmarks:
path = content_dir / benchmark_folder
os.makedirs(content_dir / benchmark_folder)
var_file = path / "test.var"
var_file.write_text("options:\n option: value\n")
print(var_file.read_text())

BENCHMARKS.add(content_dir)
result = get_all_variables_options(str(content_dir))
print(result)
assert "test" in result
assert result["test"] == {"option": "value"}


def test_get_variable_options(tmp_path):
content_dir = tmp_path / "content"
benchmarks = ["app", "app/rules"]
Expand Down

0 comments on commit 38f80a0

Please sign in to comment.