hmpf / easydmp

MIT License
7 stars 2 forks source link

Mark tests that need JSONField support #170

Closed hmpf closed 3 years ago

hmpf commented 3 years ago

Tag them with "JSONField" so they can be run separately, or excluded explicitly, see django docs on "Testing tools": https://docs.djangoproject.com/en/2.2/topics/testing/tools/

Also mark them with skipUnlessDBFeature('has_jsonb_agg') so that they are not run on sqlite.

When switching to Django 3.1 or newer and using the new JSONField there, "has_jsonb_agg" should be changed to "supports_json_field".

codecov[bot] commented 3 years ago

Codecov Report

Merging #170 (bf4d6f1) into master (bc8448a) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #170   +/-   ##
=======================================
  Coverage   55.15%   55.15%           
=======================================
  Files         102      102           
  Lines        5898     5898           
=======================================
  Hits         3253     3253           
  Misses       2645     2645           

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 bc8448a...bf4d6f1. Read the comment docs.