Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit test and remove Python 3.5 check #1319

Merged
merged 3 commits into from
Feb 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.5, 3.6, 3.7]
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
Expand Down
13 changes: 9 additions & 4 deletions components/gpio_control/test/test_gpio_control.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import configparser
import logging

from mock import patch, MagicMock
from components.gpio_control.gpio_control import get_all_devices
from mock import patch, MagicMock
from gpio_control import gpio_control
import function_calls

# def test_functionCallTwoButtonsOnlyBtn2Pressed(btn1Mock, btn2Mock, functionCall1Mock, functionCall2Mock,
# functionCallBothPressedMock):
Expand All @@ -29,6 +30,10 @@
def testMain():
config = configparser.ConfigParser()
config.read('./gpio_settings_test.ini')
devices = get_all_devices(config)
print(devices)

phoniebox_function_calls = function_calls.phoniebox_function_calls()
gpio_controler = gpio_control(phoniebox_function_calls)

devices = gpio_controler.get_all_devices(config)
gpio_controler.print_all_devices()
pass