2024-07-01 18:10:40 +02:00
|
|
|
"""Fixtures for tests in the Meet core application"""
|
2024-07-30 16:48:26 +02:00
|
|
|
|
2024-01-09 15:30:36 +01:00
|
|
|
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
|