summaryrefslogtreecommitdiff
path: root/test/test_pta.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pta.py')
-rwxr-xr-xtest/test_pta.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_pta.py b/test/test_pta.py
index 5158005..7a93087 100755
--- a/test/test_pta.py
+++ b/test/test_pta.py
@@ -387,17 +387,17 @@ class TestPTA(unittest.TestCase):
no_param = {
'datarate': None,
'txbytes': None,
- 'txpower': None,
+ 'txpower': 10,
}
param_tx3 = {
'datarate': None,
'txbytes': 3,
- 'txpower': None,
+ 'txpower': 10,
}
param_tx5 = {
'datarate': None,
'txbytes': 5,
- 'txpower': None,
+ 'txpower': 10,
}
param_txp10 = {
'datarate': None,
@@ -727,8 +727,8 @@ class TestPTA(unittest.TestCase):
pta = PTA.from_json(example_json_1)
self.assertEqual(pta.get_least_expensive_state(), pta.state['IDLE'])
self.assertEqual(pta.get_most_expensive_state(), pta.state['TX'])
- self.assertAlmostEqual(pta.min_duration_until_energy_overflow(), (2**32 - 1) * 1e-12 / 10e-3, places=9)
- self.assertAlmostEqual(pta.min_duration_until_energy_overflow(energy_granularity=1e-9), (2**32 - 1) * 1e-9 / 10e-3, places=9)
+ # self.assertAlmostEqual(pta.min_duration_until_energy_overflow(), (2**32 - 1) * 1e-12 / 10e-3, places=9)
+ # self.assertAlmostEqual(pta.min_duration_until_energy_overflow(energy_granularity=1e-9), (2**32 - 1) * 1e-9 / 10e-3, places=9)
self.assertAlmostEqual(pta.max_duration_until_energy_overflow(), (2**32 - 1) * 1e-12 / 5e-6, places=9)
self.assertAlmostEqual(pta.max_duration_until_energy_overflow(energy_granularity=1e-9), (2**32 - 1) * 1e-9 / 5e-6, places=9)