Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
surajpaib committed Sep 4, 2024
1 parent 451a33a commit c424343
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/unit/test_schema.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import pytest

from lighter.utils.runner import parse_config

@pytest.mark.parametrize("config", [
"./projects/cifar10/experiments/monai_bundle_prototype.yaml",
"./projects/cifar10/experiments/monai_bundle_prototype.yaml,./tests/configs/test1.yaml"
])

@pytest.mark.parametrize(
"config",
[
"./projects/cifar10/experiments/monai_bundle_prototype.yaml",
"./projects/cifar10/experiments/monai_bundle_prototype.yaml,./tests/configs/test1.yaml",
],
)
def test_config_schema_validation(config: str):
"""
Test the validation of configuration schemas.
Expand All @@ -16,7 +21,7 @@ def test_config_schema_validation(config: str):
config (str): Path to the configuration file(s) to be validated.
"""
# Parse the configuration file(s)
parsed_config = parse_config(config=config.split(','))
parsed_config = parse_config(config=config.split(","))

# Ensure the parsed configuration is a dictionary
assert isinstance(parsed_config.config, dict)

0 comments on commit c424343

Please sign in to comment.