Skip to content

Commit

Permalink
while run ci, won't update local files
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia committed Mar 18, 2024
1 parent 13197be commit d8170da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/scripts/code_gen/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ def gen_option_info() -> list[FFMpegOption]:


@app.command()
def generate() -> None:
outpath = Path(__file__).parent.parent.parent / "ffmpeg"
def generate(outpath: Path = None) -> None:
if not outpath:
outpath = Path(__file__).parent.parent.parent / "ffmpeg"

Check warning on line 33 in src/scripts/code_gen/cli.py

View check run for this annotation

Codecov / codecov/patch

src/scripts/code_gen/cli.py#L33

Added line #L33 was not covered by tests

ffmpeg_filters = []

Expand Down
6 changes: 5 additions & 1 deletion src/scripts/code_gen/tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from pathlib import Path
from tempfile import TemporaryDirectory

from ..cli import generate


def test_generate() -> None:
generate()
outpath = Path(TemporaryDirectory().name)
generate(outpath)

0 comments on commit d8170da

Please sign in to comment.