Skip to content

Commit

Permalink
Changing PYTHONPATH for pytest (3rd attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
Orel138 committed Feb 6, 2024
1 parent ba9aa9f commit 5ed189c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
cd /home/runner/work/LegoCLI/LegoCLI/
pytest
1 change: 0 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
cd /home/runner/work/LegoCLI/LegoCLI/
pytest
5 changes: 5 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
from unittest.mock import patch
import sys
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent / 'lego_cli'))

from lego_cli.main import LegoCLI


Expand Down

0 comments on commit 5ed189c

Please sign in to comment.