Skip to content

Commit

Permalink
ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Jan 22, 2025
1 parent 3eec503 commit 32aa888
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/molecule_plugins/docker/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
# DEALINGS IN THE SOFTWARE.
"""Docker Driver Module."""


import os

from molecule import logger
Expand Down
5 changes: 3 additions & 2 deletions src/molecule_plugins/podman/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
# DEALINGS IN THE SOFTWARE.
"""Podman Driver Module."""


import os
import warnings
from shutil import which
Expand Down Expand Up @@ -248,4 +247,6 @@ def required_collections(self) -> dict[str, str]:

def reset(self):
# keep `--filter` in sync with playbooks/create.yml
get_app(Path()).run_command(["podman", "rm", "--force", "--filter=label=owner=molecule"])
get_app(Path()).run_command(
["podman", "rm", "--force", "--filter=label=owner=molecule"]
)
1 change: 1 addition & 0 deletions test/containers/functional/test_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
"""Functional Tests."""

import os

from pathlib import Path
Expand Down
8 changes: 6 additions & 2 deletions test/docker/test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ def test_command_init_and_test_scenario(tmp_path: pathlib.Path, DRIVER: str) ->

# run molecule reset as this may clean some leftovers from other
# test runs and also ensure that reset works.
result = get_app(tmp_path).run_command(["molecule", "reset"]) # default scenario
result = get_app(tmp_path).run_command(
["molecule", "reset"]
) # default scenario
assert result.returncode == 0

result = get_app(tmp_path).run_command(["molecule", "reset", "-s", scenario_name])
result = get_app(tmp_path).run_command(
["molecule", "reset", "-s", scenario_name]
)
assert result.returncode == 0

cmd = ["molecule", "--debug", "test", "-s", scenario_name]
Expand Down
12 changes: 9 additions & 3 deletions test/podman/test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ def test_podman_command_init_scenario(tmp_path: pathlib.Path):

# run molecule reset as this may clean some leftovers from other
# test runs and also ensure that reset works.
result = get_app(tmp_path).run_command(["molecule", "reset"]) # default sceanario
result = get_app(tmp_path).run_command(
["molecule", "reset"]
) # default sceanario
assert result.returncode == 0

result = get_app(tmp_path).run_command(["molecule", "reset", "-s", scenario_name])
result = get_app(tmp_path).run_command(
["molecule", "reset", "-s", scenario_name]
)
assert result.returncode == 0

cmd = ["molecule", "--debug", "test", "-s", scenario_name]
Expand All @@ -57,7 +61,9 @@ def test_podman_command_init_scenario(tmp_path: pathlib.Path):

def test_sample() -> None:
"""Runs the sample scenario present at the repository root."""
result = get_app(Path()).run_command(["molecule", "test", "-s", "test-podman"]) # default sceanario
result = get_app(Path()).run_command(
["molecule", "test", "-s", "test-podman"]
) # default sceanario
assert result.returncode == 0


Expand Down

0 comments on commit 32aa888

Please sign in to comment.