Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions profiles/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from os.path import basename, splitext

import pytest
from django.conf import settings
from django.contrib.auth.models import User
from django.urls import reverse
from rest_framework import status
Expand Down Expand Up @@ -422,6 +423,8 @@ def test_list_user_program_certificates(mocker, client, user, is_anonymous):
"""
Test listing program certificates for a user
"""
settings.DATABASE_ROUTERS = []
settings.EXTERNAL_MODELS = []
if not is_anonymous:
client.force_login(user)
certs = ProgramCertificateFactory.create_batch(
Expand Down