identifiers.gen_swhid: Use QualifiedSWHID instead of the deprecated swhid() function.
Also fix tests using it with the wrong argument type (a dict with an "id" key, instead of just the object id).
Migrated from D5169 (view on Phabricator)
Staging instance, all changes can be removed at any time
Also fix tests using it with the wrong argument type (a dict with an "id" key, instead of just the object id).
Migrated from D5169 (view on Phabricator)