Skip to content

Commit

Permalink
https://github.com/andgineer/docker-amazon-dash-button-hack/issues/11
Browse files Browse the repository at this point in the history
cleanup root or the project
  • Loading branch information
andgineer committed Sep 24, 2023
1 parent e9035d7 commit f126bcc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python -m pip install -r requirements.dev.txt
- name: Test with pytest
run: |
coverage run -m pytest -m "not benchmark"
coverage run -m pytest tests -m "not benchmark"
- name: Upload Coverage to Codecov
if: ${{ matrix.python-version == 3.11 && matrix.platform == 'ubuntu-latest' }}
Expand Down
12 changes: 0 additions & 12 deletions conftest.py

This file was deleted.

6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
sys.modules["scapy.layers.dhcp"] = Mock()
sys.modules["scapy.layers.l2"] = Mock()

# Point sys.path to our sources before importing anything from them
import os.path
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), "../src"))

# We need to import amazon_dash after mocking scapy
from amazon_dash import AmazonDash

Expand Down

0 comments on commit f126bcc

Please sign in to comment.