Skip to content

Commit ae1411d

Browse files
committed
Fix tests of basic example service.
1 parent 00a564b commit ae1411d

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

docs/examples/basic_example/docker-compose-autotest.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,4 @@ services:
3030
- ./source/service:/source/service/
3131
user: "${USER_ID:-1000}:${GROUP_ID:-1000}"
3232
environment:
33-
- CELERY__NAME=minimal_service
34-
- 'CELERY__BROKER_URL=filesystem://'
35-
- 'CELERY__FS_TRANSPORT_BASE_FOLDER=/tmp/'
33+
- VERSION=latest-devl

docs/examples/basic_example/source/service/tests/data.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,15 @@
168168
"Python": {
169169
"arguments": {
170170
"geographic_position": {
171-
"latitude": 35.2,
172-
"longitude": -110.0,
173-
"height": None,
171+
"latitude": 49.013,
172+
"longitude": 8.404,
174173
}
175174
},
176175
"parameters": {
177176
"pv_system": {
178177
"azimuth_angle": 20,
179178
"inclination_angle": 30,
180179
"nominal_power": 5.0,
181-
"power_datapoint_id": 1,
182180
}
183181
},
184182
},
@@ -187,17 +185,15 @@
187185
"JSONable": {
188186
"arguments": {
189187
"geographic_position": {
190-
"latitude": 35.2,
191-
"longitude": -110.0,
192-
"height": None,
188+
"latitude": 49.013,
189+
"longitude": 8.404,
193190
}
194191
},
195192
"parameters": {
196193
"pv_system": {
197194
"azimuth_angle": 20,
198195
"inclination_angle": 30,
199196
"nominal_power": 5.0,
200-
"power_datapoint_id": 1,
201197
}
202198
},
203199
},
@@ -434,7 +430,6 @@
434430
"azimuth_angle": 15.0,
435431
"inclination_angle": 25.0,
436432
"nominal_power": 4.5,
437-
"power_datapoint_id": None,
438433
}
439434
},
440435
# NOTE: No difference to Python as no data types included that JSON
@@ -444,7 +439,6 @@
444439
"azimuth_angle": 15.0,
445440
"inclination_angle": 25.0,
446441
"nominal_power": 4.5,
447-
"power_datapoint_id": None,
448442
}
449443
},
450444
}
@@ -459,7 +453,6 @@
459453
"geographic_position": {
460454
"latitude": 35.2,
461455
"longitude": -110.0,
462-
"height": None,
463456
}
464457
},
465458
"observations": {
@@ -480,7 +473,6 @@
480473
"geographic_position": {
481474
"latitude": 35.2,
482475
"longitude": -110.0,
483-
"height": None,
484476
}
485477
},
486478
"observations": {

0 commit comments

Comments
 (0)