artsy / positron

Positron is Artsy Writer or the editorial tool and API for Artsy.
MIT License
85 stars 42 forks source link

fix: model persistence #3135

Closed mc-jones closed 5 months ago

mc-jones commented 5 months ago

This PR is a follow-up to #3134 refactors the save method of the authors, channels, curations, sections, tags, and users models to support update, not just insert, operations. There were no assertions about updating in the previous test suite, so these have been added.

codecov[bot] commented 5 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (7e29133) 83.5% compared to head (2390853) 83.5%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3135 +/- ## ===================================== Coverage 83.5% 83.5% ===================================== Files 197 197 Lines 5388 5388 Branches 977 978 +1 ===================================== Hits 4500 4500 Misses 635 635 Partials 253 253 ```