Skip to content
Snippets Groups Projects
Commit 425d2c80 authored by David Douard's avatar David Douard
Browse files

postgresql: fix content_add_metadata()

it was using a generator like a list, effectively only inserting one
content object per batch.
The test needs to be modified to actually show the misbehavior, with the
need for a inserting first one object before inserting a list of
objects, otherwise the test is green without the fix (the reason is left
as an exercice for the curious reader).

Also fix a small type inconsistency on content_add() and use the same test
pattern in test_content_add().
parent 0c7b7374
No related branches found
Tags debian/0.1.1-1_swh1
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment