Skip to content

Commit

Permalink
No test crash if ON_MESH undef & chmod +x nn_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Oct 5, 2023
1 parent 6be45c1 commit 94d32c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Empty file modified bin/nn_stats.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions tests/test_diagnostics_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from distutils.util import strtobool

load_dotenv()
on_mesh = strtobool(os.environ.get("ON_MESH"))
on_mesh = strtobool(os.environ.get("ON_MESH", default="False"))

@pytest.mark.skipif(not on_mesh or sys.platform == "win32", reason="not on mesh or on windows")
def test_get_report_lbe_only():
Expand All @@ -32,4 +32,4 @@ def test_generate_uisp_section():
print(report)

if __name__ == "__main__":
test_generate_uisp_section()
test_generate_uisp_section()
4 changes: 2 additions & 2 deletions tests/test_uisp_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from distutils.util import strtobool

load_dotenv()
on_mesh = strtobool(os.environ.get("ON_MESH"))
on_mesh = strtobool(os.environ.get("ON_MESH", default="False"))

@pytest.mark.skipif(not on_mesh, reason="Not on mesh")
def test_get_uisp_devices():
Expand All @@ -21,4 +21,4 @@ def test_nn_from_uisp_name():


if __name__ == "__main__":
test_nn_from_uisp_name()
test_nn_from_uisp_name()

0 comments on commit 94d32c1

Please sign in to comment.