thegridelectric / gw-scada-spaceheat-python

GridWorks SCADA for space heating
MIT License
5 stars 2 forks source link

black many schema and add derive schema tests #81

Closed jessicamillar closed 2 years ago

jessicamillar commented 2 years ago

Add derived tests for schema that do not involve data classes. Related schema now pass black -l 100

codecov[bot] commented 2 years ago

Codecov Report

Merging #81 (37d8dc7) into main (3ed3417) will increase coverage by 7.02%. The diff coverage is 99.90%.

@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
+ Coverage   77.27%   84.29%   +7.02%     
==========================================
  Files         151      166      +15     
  Lines        5218     6061     +843     
==========================================
+ Hits         4032     5109    +1077     
+ Misses       1186      952     -234     
Impacted Files Coverage Δ
gw_spaceheat/actors/scada.py 81.01% <ø> (-0.55%) :arrow_down:
gw_spaceheat/data_classes/node_config.py 82.79% <ø> (ø)
gw_spaceheat/schema/gt/gt_dispatch/gt_dispatch.py 100.00% <ø> (+11.11%) :arrow_up:
...aceheat/schema/gt/gt_heartbeat_a/gt_heartbeat_a.py 100.00% <ø> (ø)
...t/schema/gt/gt_sh_cli_atn_cmd/gt_sh_cli_atn_cmd.py 100.00% <ø> (+11.11%) :arrow_up:
...w_spaceheat/schema/gt/gt_telemetry/gt_telemetry.py 100.00% <ø> (+11.11%) :arrow_up:
...reporting_config/gt_powermeter_reporting_config.py 90.90% <66.66%> (+9.09%) :arrow_up:
gw_spaceheat/actors/power_meter.py 93.25% <100.00%> (ø)
...paceheat/schema/gt/gt_dispatch/gt_dispatch_base.py 100.00% <100.00%> (+20.00%) :arrow_up:
...aceheat/schema/gt/gt_dispatch/gt_dispatch_maker.py 100.00% <100.00%> (+21.87%) :arrow_up:
... and 73 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more