Skip to content

Commit

Permalink
Improve LoRaWAN test documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Mar 23, 2020
1 parent cbc1ff9 commit e235b25
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions test/test_lorawan.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,23 @@
# (c) 2020 Richard Pobering <richard@hiveeyes.org>
# (c) 2020 Andreas Motl <andreas@hiveeyes.org>
# License: GNU General Public License, Version 3
import sys
"""
About
=====
Invoke the datalogger program replaying different LoRaWAN
communication scenarios and testing for their outcomes.
Setup
=====
- https://github.com/hiveeyes/terkin-datalogger/blob/master/doc/tests.rst
Synopsis
========
To invoke these tests, just type::
make test marker="lorawan"
"""
import mock
import pytest
import logging
Expand All @@ -15,7 +30,7 @@
@pytest.mark.telemetry
@pytest.mark.lorawan
@mock.patch('sys.platform', 'LoPy4')
def test_lora_cayenne_system_temperature(network_lora, caplog):
def test_uplink_system_temperature(network_lora, caplog):
"""
Pretend to invoke the datalogger on a LoPy4 with basic system sensors.
Effectively, only the "system.temperature" sensor will be transmitted
Expand Down Expand Up @@ -67,7 +82,7 @@ def test_lora_cayenne_system_temperature(network_lora, caplog):
@pytest.mark.telemetry
@pytest.mark.lorawan
@mock.patch('sys.platform', 'LoPy4')
def test_lora_cayenne_environment(mocker, network_lora, caplog):
def test_uplink_environmental_sensors(mocker, network_lora, caplog):
"""
Pretend to invoke the datalogger on a LoPy4 with environmental sensors.
Expand Down

0 comments on commit e235b25

Please sign in to comment.