openclimatefix / pv-site-api

Site specific API for PV forecasting
5 stars 8 forks source link

Add put endpoint for editing site #88

Closed ericcccsliu closed 1 year ago

ericcccsliu commented 1 year ago

Pull Request

Adds PUT endpoint for editing site details!

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #88 (9ed54b5) into h4i/enode (a4fb461) will increase coverage by 2.24%. The diff coverage is 95.09%.

@@              Coverage Diff              @@
##           h4i/enode      #88      +/-   ##
=============================================
+ Coverage      87.31%   89.56%   +2.24%     
=============================================
  Files              9       11       +2     
  Lines            410      527     +117     
=============================================
+ Hits             358      472     +114     
- Misses            52       55       +3     
Impacted Files Coverage Δ
pv_site_api/session.py 37.50% <0.00%> (ø)
pv_site_api/auth.py 90.47% <90.47%> (ø)
pv_site_api/main.py 92.23% <94.80%> (+1.68%) :arrow_up:
pv_site_api/cache.py 97.14% <97.14%> (ø)
pv_site_api/__init__.py 100.00% <100.00%> (ø)
pv_site_api/_db_helpers.py 100.00% <100.00%> (ø)
pv_site_api/pydantic_models.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more