Skip to content

Commit

Permalink
Minor test fixes (#459)
Browse files Browse the repository at this point in the history
- remove duplicate rtd config
- fix some vscode settings
- fix spelling
  • Loading branch information
ssbarnea authored Feb 3, 2025
1 parent a61d946 commit edc4d3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 34 deletions.
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"[toml]": {
"editor.defaultFormatter": "panekj.even-betterer-toml"
},
"editor.formatOnSave": true,
"evenBetterToml.formatter.alignComments": false,
"evenBetterToml.formatter.arrayTrailingComma": true,
"files.exclude": {
"*.egg-info": true,
".pytest_cache": true,
Expand All @@ -42,10 +47,5 @@
"yaml.completion": true,
"yaml.customTags": ["!encrypted/pkcs1-oaep scalar", "!vault scalar"],
"yaml.format.enable": false,
"yaml.validate": true,
"evenBetterToml.formatter.alignComments": false,
"evenBetterToml.formatter.arrayTrailingComma": true,
"[toml]": {
"editor.defaultFormatter": "panekj.even-betterer-toml"
}
"yaml.validate": true
}
25 changes: 0 additions & 25 deletions readthedocs.yml

This file was deleted.

6 changes: 3 additions & 3 deletions test/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def test__update_env(


def test_require_collection_wrong_version(runtime: Runtime) -> None:
"""Tests behaviour of require_collection."""
"""Tests behavior of require_collection."""
subprocess.check_output(
[
"ansible-galaxy",
Expand Down Expand Up @@ -472,7 +472,7 @@ def test_require_collection_missing(
install: bool,
runtime: Runtime,
) -> None:
"""Tests behaviour of require_collection, missing case."""
"""Tests behavior of require_collection, missing case."""
with pytest.raises(AnsibleCompatError) as pytest_wrapped_e:
runtime.require_collection(name=name, version=version, install=install)
assert pytest_wrapped_e.type == InvalidPrerequisiteError
Expand Down Expand Up @@ -637,7 +637,7 @@ def test_upgrade_collection(runtime_tmp: Runtime) -> None:
# ensure that we inject our tmp folders in ansible paths
runtime_tmp.prepare_environment()

# we install specific oudated version of a collection
# we install specific outdated version of a collection
runtime_tmp.install_collection("examples/reqs_v2/community-molecule-0.1.0.tar.gz")
with pytest.raises(
InvalidPrerequisiteError,
Expand Down

0 comments on commit edc4d3f

Please sign in to comment.