Skip to content

Use a specific snippet factory in tests

Vasilii Iakliushin requested to merge 494689_update_snippet_tests into master

What does this MR do and why?

Contributes to #494689 (closed)

Problem

We are going to add a not null constraint for snippet fields project_id and organization_id. This change breaks test factories that generate invalid records without any of these fields.

Solution

Update test suite to use a specific snippet type (Project or Personal) instead of a generic snippet.

In a follow-up merge request I'm going to remove snippet factory completely.

Edited by Vasilii Iakliushin

Merge request reports

Loading