Skip to content

Commit

Permalink
Update GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Orel138 committed Feb 6, 2024
1 parent 76f5c7b commit 5855700
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 7 additions & 5 deletions docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
python ./lego_cli/main.py --help

python ./lego_cli/main.py --csv_path ./tests/Brickset-MySets-all.csv --analyze_by_theme --theme "Star Wars"

python ./lego_cli/main.py --csv_path ./tests/Brickset-MySets-all.csv --analyze_by_theme --theme "Star Wars" -verbose
do not:
python ./lego_cli/main.py --help
python ./lego_cli/main.py --csv_path ./tests/Brickset-MySets-all.csv --analyze_by_theme --theme "Star Wars"
python ./lego_cli/main.py --csv_path ./tests/Brickset-MySets-all.csv --analyze_by_theme --theme "Star Wars" -verbose

do:
python -m lego_cli.main --csv_path ./tests/Brickset-MySets-all.csv --help
4 changes: 2 additions & 2 deletions lego_cli/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python3

# main.py
from cli_config import OPTIONS
from data_analysis import analyze_by_theme
from .cli_config import OPTIONS
from .data_analysis import analyze_by_theme
import argparse
import sys

Expand Down
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env python3
# This is an empty file.
4 changes: 0 additions & 4 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from unittest.mock import patch
import sys
from pathlib import Path

sys.path.append(str(Path(__file__).parent))

from lego_cli.main import LegoCLI

Expand Down

0 comments on commit 5855700

Please sign in to comment.