Skip to content

Commit

Permalink
Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vsabatie committed Nov 27, 2023
1 parent 02a598a commit 3f8b4fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pod/dressing/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def test_attributs_full(self):
self.assertEqual(dressing.opacity, 50)
self.assertEqual(dressing.opening_credits, video)
self.assertEqual(dressing.ending_credits, video2)
print(" ---> test_attributs_full: OK! --- DressingModelTest")

def test_dressing_to_json(self):
dressing = Dressing.objects.get(id=1)
Expand All @@ -96,9 +97,10 @@ def test_dressing_to_json(self):
"owners": [owner.id],
"users": [owner.id],
"watermark": dressing.watermark.file.url,
"position": "En haut à droite",
"position": dressing.get_position_display(),
"opacity": 50,
"opening_credits": video.slug,
"ending_credits": video2.slug,
}
self.assertEqual(dressing_json, expected_json)
print(" ---> test_dressing_to_json: OK! --- DressingModelTest")

0 comments on commit 3f8b4fd

Please sign in to comment.