-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from e100/more_tests_and_ci_fixes
Adding more tests
- Loading branch information
Showing
19 changed files
with
659 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
display: | ||
# The column names must be single word | ||
# The exact name defined here is used for the key names | ||
# in the list below | ||
columns: | ||
- name: Name | ||
size: 15 | ||
sort: true | ||
- name: Identifier | ||
size: 4 | ||
sort: true | ||
- name: Frequency | ||
size: 11 | ||
sort: false #False is the default | ||
# Enables nearest selector where it will | ||
# sort by distance from your current location | ||
# Requires LONG and LAT keys on each entry to work. | ||
|
||
location: true | ||
list: | ||
- Name: Akron-Canton Reg Tower | ||
Identifier: KCAK | ||
Frequency: 134.750 Mhz | ||
lat: 40.9150556 | ||
long: -81.4436389 | ||
set: | ||
COMACTFREQSET{radio_id}: 134750 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
- Name: Akron-Canton Reg ATIS | ||
Identifier: KCAK | ||
Frequency: 121.050 Mhz | ||
lat: 40.9150556 | ||
long: -81.4436389 | ||
set: | ||
COMACTFREQSET{radio_id}: 121050 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
- Name: Cleveland-Hopkins Int Tower | ||
Identifier: KCLE | ||
Frequency: 124.500 Mhz | ||
set: | ||
COMACTFREQSET{radio_id}: 124500 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
lat: 41.4094069 | ||
long: -81.8546911 | ||
- Name: Cleveland-Hopkins Int ATIS | ||
Identifier: KCLE | ||
Frequency: 127.850 Mhz | ||
set: | ||
COMACTFREQSET{radio_id}: 127850 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
lat: 41.4094069 | ||
long: -81.8546911 | ||
|
||
- Name: John Glenn Int. Tower | ||
Identifier: KCMH | ||
Frequency: 132.700 Mhz | ||
lat: 39.9969467 | ||
long: -82.8921592 | ||
set: | ||
COMACTFREQSET{radio_id}: 132700 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
- Name: John Glenn Int. Ground | ||
Identifier: KCMH | ||
Frequency: 121.900 Mhz | ||
set: | ||
COMACTFREQSET{radio_id}: 121900 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
lat: 39.9969467 | ||
long: -82.8921592 | ||
- Name: John Glenn Int. ASOS | ||
Identifier: KCMH | ||
Frequency: 124.600 Mhz | ||
set: | ||
COMACTFREQSET{radio_id}: 124600 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
display: | ||
# The column names must be single word | ||
# The exact name defined here is used for the key names | ||
# in the list below | ||
columns: | ||
- name: Name | ||
size: 15 | ||
sort: true | ||
- name: Identifier | ||
size: 4 | ||
sort: true | ||
- name: Frequency | ||
size: 11 | ||
sort: false #False is the default | ||
# Enables nearest selector where it will | ||
# sort by distance from your current location | ||
# Requires LONG and LAT keys on each entry to work. | ||
|
||
location: true | ||
list: | ||
- Name: Rickenbacker Int Tower | ||
Identifier: KLCK | ||
Frequency: 120.050 Mhz | ||
lat: 39.8137881 | ||
long: -82.9278164 | ||
set: | ||
COMACTFREQSET{radio_id}: 12050 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
- Name: Rickenbacker Int ASOS | ||
Identifier: KLCK | ||
Frequency: 132.75 Mhz | ||
lat: 39.8137881 | ||
long: -82.9278164 | ||
set: | ||
COMACTFREQSET{radio_id}: 132750 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
- Name: Chapman Memorial | ||
Identifier: K6CM | ||
Frequency: 122.900 Mhz | ||
set: | ||
COMACTFREQSET{radio_id}: 122.900 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
- Name: Marion Municipal | ||
Identifier: KMNN | ||
Frequency: 122.800 Mhz | ||
set: | ||
COMACTFREQSET{radio_id}: 122.800 | ||
COMACTNAMESET{radio_id}: "{Name}" | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import pytest | ||
from unittest import mock | ||
from PyQt5.QtWidgets import QApplication | ||
from PyQt5.QtCore import Qt, qRound | ||
from PyQt5.QtGui import QColor, QBrush, QPen, QFont, QPainter, QPaintEvent, QFontMetrics | ||
from PyQt5 import QtGui | ||
from pyefis.instruments import ai | ||
import pyefis.hmi as hmi | ||
from tests.utils import track_calls | ||
|
||
@pytest.fixture | ||
def app(qtbot): | ||
test_app = QApplication.instance() | ||
if test_app is None: | ||
test_app = QApplication([]) | ||
return test_app | ||
|
||
|
||
def test_ai(fix,qtbot): | ||
widget = ai.AI() | ||
qtbot.addWidget(widget) | ||
widget.resize(200,200) | ||
widget.show() | ||
qtbot.waitExposed(widget) | ||
qtbot.wait(3000) |
Oops, something went wrong.