Skip to content

Commit

Permalink
Merge pull request #233 from e100/more_tests_and_ci_fixes
Browse files Browse the repository at this point in the history
More tests and ci fixes
  • Loading branch information
e100 authored Jun 15, 2024
2 parents e3c7e73 + 63c671e commit 30d76de
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 70 deletions.
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

0 comments on commit 30d76de

Please sign in to comment.