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

More tests and ci fixes #233

Merged
merged 9 commits into from
Jun 15, 2024
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
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
|Website snapcraft.io|
|Website snapcraft.io| |Coverage Badge|

.. |Website snapcraft.io| image:: https://snapcraft.io/pyefis/badge.svg
:target: https://snapcraft.io/pyefis

.. |Coverage Badge| image:: https://raw.githubusercontent.com/makerplane/pyEfis/python-coverage-comment-action-data/badge.svg
:target: https://htmlpreview.github.io/?https://github.com/makerplane/pyEfis/blob/python-coverage-comment-action-data/htmlcov/index.html

pyEfis
==================

Expand Down
12 changes: 12 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,17 @@ def create_numbers(key, value, old=False, bad=False, fail=False, annunciate=Fals
fix.db.get_item("IAS").set_aux_value("Vne", 140.0)
fix.db.get_item("IAS").set_aux_value("Vfe", 70.0)

fix.db.define_item(
"ALT",
"Indicated Altitude",
"float",
-2000.0,
60000.0,
"ft",
50000,
""
)
fix.db.set_value("ALT", 0)

return fix

6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ filterwarnings = [
# I belive this is warning that pyqt needs updated if you update to python 3.12
"ignore:sipPyTypeDict.*:DeprecationWarning:.*:"
]
addopts = "-vv --cov=src --cov-report html:extras/extras/test_results/htmlcov/ --cov-report term-missing --strict-markers -rfE"
addopts = """
--cov-report term-missing --cov-branch --cov-report html --cov-report term
--cov=pyefis --cov-context=test -vv --strict-markers -rfE
--ignore=tests/end_to_end/repo
"""

[tool.coverage.run]
relative_files = true
Expand Down
Loading
Loading