"""Fixtures for tests in the publish core application""" from unittest import mock import pytest USER = "user" TEAM = "team" VIA = [USER, TEAM] @pytest.fixture def mock_user_get_teams(): """Mock for the "get_teams" method on the User model.""" with mock.patch("core.models.User.get_teams") as mock_get_teams: yield mock_get_teams