-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2940] Add OpenKlant2 configuration model
- Loading branch information
Paul Schilling
committed
Dec 18, 2024
1 parent
0d4c736
commit 801f58d
Showing
24 changed files
with
290 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from unittest.mock import ANY, patch | ||
|
||
from django.conf import settings | ||
from django.contrib.auth import signals | ||
from django.core import mail | ||
from django.test import override_settings | ||
from django.urls import reverse | ||
|
@@ -15,14 +16,20 @@ | |
) | ||
from zgw_consumers.constants import APITypes | ||
|
||
from open_inwoner.accounts.signals import update_user_from_klant_on_login | ||
from open_inwoner.accounts.tests.factories import ( | ||
DigidUserFactory, | ||
eHerkenningUserFactory, | ||
) | ||
from open_inwoner.openklant.constants import Status | ||
from open_inwoner.openklant.models import OpenKlantConfig | ||
from open_inwoner.openklant.services import eSuiteVragenService | ||
from open_inwoner.openklant.tests.data import CONTACTMOMENTEN_ROOT, KLANTEN_ROOT | ||
from open_inwoner.openklant.tests.data import ( | ||
CONTACTMOMENTEN_ROOT, | ||
KLANTEN_ROOT, | ||
KLANTEN_ROOT_VCR, | ||
) | ||
from open_inwoner.openklant.tests.factories import OpenKlant2ConfigFactory | ||
from open_inwoner.openzaak.models import CatalogusConfig, OpenZaakConfig | ||
from open_inwoner.openzaak.tests.factories import ( | ||
ServiceFactory, | ||
|
@@ -62,7 +69,13 @@ class CasesContactFormTestCase(AssertMockMatchersMixin, ClearCachesMixin, WebTes | |
def setUp(self): | ||
super().setUp() | ||
|
||
self.user = DigidUserFactory(bsn="900222086") | ||
signals.user_logged_in.disconnect(update_user_from_klant_on_login) | ||
|
||
self.openklant2_config = OpenKlant2ConfigFactory( | ||
service=ServiceFactory(api_root=KLANTEN_ROOT_VCR, api_type=APITypes.kc) | ||
) | ||
|
||
self.user = DigidUserFactory(bsn="900222086", email="[email protected]") | ||
|
||
# services | ||
self.api_group = ZGWApiGroupConfigFactory( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.