Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
1168956f
Unverified
Commit
1168956f
authored
1 year ago
by
Erik Montnemery
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Small improvement of yaml util tests (#103853)
parent
6303366c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/util/yaml/test_init.py
+2
-2
2 additions, 2 deletions
tests/util/yaml/test_init.py
with
2 additions
and
2 deletions
tests/util/yaml/test_init.py
+
2
−
2
View file @
1168956f
...
...
@@ -70,7 +70,7 @@ def test_simple_dict(try_both_loaders) -> None:
@pytest.mark.parametrize
(
"
hass_config_yaml
"
,
[
"
message:
\n
{{ states.state }}
"
])
def
test_unhashable_key
(
mock_hass_config_yaml
:
None
)
->
None
:
def
test_unhashable_key
(
try_both_loaders
,
mock_hass_config_yaml
:
None
)
->
None
:
"""
Test an unhashable key.
"""
with
pytest
.
raises
(
HomeAssistantError
):
load_yaml_config_file
(
YAML_CONFIG_FILE
)
...
...
@@ -538,7 +538,7 @@ def test_c_loader_is_available_in_ci() -> None:
assert
yaml
.
loader
.
HAS_C_LOADER
is
True
async
def
test_loading_actual_file_with_syntax
(
async
def
test_loading_actual_file_with_syntax
_error
(
hass
:
HomeAssistant
,
try_both_loaders
)
->
None
:
"""
Test loading a real file with syntax errors.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment