Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 23, 2024
1 parent b77d136 commit 7338c93
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
"""Integration test for the swmmanywhere command-line interface."""

from __future__ import annotations

import sys
import tempfile
import yaml
from pathlib import Path

import pytest
import yaml

from swmmanywhere import __main__


def test_swmmanywhere_cli(capsys):
"""Test that the CLI can successfully run with an actual configuration."""

with tempfile.TemporaryDirectory() as tempdir:
base_dir = Path(tempdir)
# Define minimum viable config
Expand All @@ -27,8 +29,10 @@ def test_swmmanywhere_cli(capsys):
# Mock sys.argv to simulate command-line arguments
sys.argv = [
"swmmanywhere",
"--config_path", str(config_path),
"--verbose", "True"
"--config_path",
str(config_path),
"--verbose",
"True",
]

# Run the CLI entry point
Expand Down

0 comments on commit 7338c93

Please sign in to comment.