File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed
Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 2525- ``Vector``
2626- ``Coordinate``
2727
28+ Enums
29+ -----
30+
2831- ``ADJUST``
2932- ``ATR``
3033- ``ATRMODE``
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def tps() -> TPS1000:
1414 return TPS1000 (DummyGeoComConnection ())
1515
1616
17- class TestTPS1200P :
17+ class TestTPS1000 :
1818 def test_init (self ):
1919 conn_bad = Connection ()
2020 with pytest .raises (ConnectionError ):
Original file line number Diff line number Diff line change 1+ import pytest
2+
3+ from geocompy .communication import Connection
4+ from geocompy .tps1100 import TPS1100
5+
6+ from helpers_geocom import (
7+ DummyGeoComConnection ,
8+ GeoComTester
9+ )
10+
11+
12+ @pytest .fixture
13+ def tps () -> TPS1100 :
14+ return TPS1100 (DummyGeoComConnection ())
15+
16+
17+ class TestTPS1100 :
18+ def test_init (self ):
19+ conn_bad = Connection ()
20+ with pytest .raises (ConnectionError ):
21+ TPS1100 (conn_bad , retry = 1 )
22+
23+ conn_good = DummyGeoComConnection ()
24+ instrument = TPS1100 (conn_good )
25+ assert instrument ._precision == 15
26+
27+ def test_parse_response (self , tps : TPS1100 ):
28+ GeoComTester .test_parse_response (tps )
29+
30+ def test_request (self , tps : TPS1100 ):
31+ GeoComTester .test_request (tps )
You can’t perform that action at this time.
0 commit comments