Skip to content

Commit

Permalink
Merge pull request #26 from dbatten5/fix-test
Browse files Browse the repository at this point in the history
Fix test
  • Loading branch information
dbatten5 authored Oct 28, 2021
2 parents 44c4e6a + 16da311 commit f749237
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "maison"
version = "1.2.1"
version = "1.2.2"
description = "Maison"
authors = ["Dom Batten <[email protected]>"]
license = "MIT"
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class Schema(ConfigSchema):
config = ProjectConfig(
project_name="foo",
starting_path=pyproject_path,
schema=Schema,
config_schema=Schema,
)

config.validate()
Expand Down Expand Up @@ -269,7 +269,7 @@ class Schema(ConfigSchema):
config = ProjectConfig(
project_name="foo",
starting_path=pyproject_path,
schema=Schema,
config_schema=Schema,
)

config.validate()
Expand Down Expand Up @@ -298,7 +298,7 @@ class Schema(ConfigSchema):
config = ProjectConfig(
project_name="foo",
starting_path=pyproject_path,
schema=Schema,
config_schema=Schema,
)

config.validate(use_schema_values=False)
Expand Down Expand Up @@ -331,10 +331,10 @@ class Schema2(ConfigSchema):
config = ProjectConfig(
project_name="foo",
starting_path=pyproject_path,
schema=Schema1,
config_schema=Schema1,
)

config.validate(schema=Schema2)
config.validate(config_schema=Schema2)

assert config.get_option("bar") == "schema_2"

Expand All @@ -358,7 +358,7 @@ class Schema(ConfigSchema):
config = ProjectConfig(
project_name="foo",
starting_path=pyproject_path,
schema=Schema,
config_schema=Schema,
)

with pytest.raises(ValidationError):
Expand Down

0 comments on commit f749237

Please sign in to comment.