keep-the-receipts / procurement-portal-backend

Backend for a portal for searching procurement records
MIT License
0 stars 3 forks source link

Fix demo data #10

Closed jbothma closed 4 years ago

jbothma commented 4 years ago

Fix demodata fixture not finding files, and duplicate key violating unique constraint.

Currently broken with:

  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: Problem installing fixture '/app/demodata.json': Could not load records.DatasetVersion(pk=1): duplicate key value violates unique constraint "records_purchaserecord_pkey"
DETAIL:  Key (id)=(1) already exists.
codecov[bot] commented 4 years ago

Codecov Report

Merging #10 into master will decrease coverage by 4.15%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   83.77%   79.62%   -4.16%     
==========================================
  Files          21       21              
  Lines         265      265              
==========================================
- Hits          222      211      -11     
- Misses         43       54      +11     
Impacted Files Coverage Δ
procurement_portal/settings.py 74.46% <100.00%> (-23.41%) :arrow_down:

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 ae4f408...3ed08d6. Read the comment docs.