aecworks / aec.works-api

Backend for https://aec.works
GNU General Public License v3.0
5 stars 1 forks source link

New seed #66

Closed gtalarico closed 3 years ago

gtalarico commented 3 years ago

Seed companies procedurally instead of using django's dumpdata fixtures. Django's fixtures are flaky and often break and can't be loaded.

This now seeds companies, logos, comments, and articles from some hard coded data into the seed script and is much more predictable.

The seed script is idempotent and can be ran at any tie without duplication of data

codecov[bot] commented 3 years ago

Codecov Report

Merging #66 (f8d531e) into master (79012c7) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #66   +/-   ##
=======================================
  Coverage   84.64%   84.64%           
=======================================
  Files          63       63           
  Lines        1791     1791           
=======================================
  Hits         1516     1516           
  Misses        275      275           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 79012c7...f8d531e. Read the comment docs.