summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-09-20 11:25:38 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-09-20 11:25:38 +0200
commit0797e17becac45f9aca3a4fdb819c7bb75283e3c (patch)
tree21019d044b9be46e95943fb06bb90ffa060d383c
parent74fc0f76ea194a7042d6e01dd2bad6a1c1a913d0 (diff)
test: mark CC1200 test as slow
-rwxr-xr-xtest/test_ptamodel.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_ptamodel.py b/test/test_ptamodel.py
index 630dffe..36d2c11 100755
--- a/test/test_ptamodel.py
+++ b/test/test_ptamodel.py
@@ -1,7 +1,9 @@
#!/usr/bin/env python3
from dfatool import PTAModel, RawData, pta_trace_to_aggregate
+import os
import unittest
+import pytest
class TestModels(unittest.TestCase):
def test_model_singlefile_rf24(self):
@@ -193,8 +195,8 @@ class TestModels(unittest.TestCase):
self.assertAlmostEqual(static_model('off', 'duration'), 9140, places=0)
self.assertAlmostEqual(static_model('red', 'duration'), 9140, places=0)
+ @pytest.mark.skipif('TEST_SLOW' not in os.environ, reason="slow test, set TEST_SLOW=1 to run")
def test_model_multifile_cc1200(self):
- return
testfiles = [
'test-data/20170125_125433_cc1200.tar',
'test-data/20170125_142420_cc1200.tar',