-
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.
- Loading branch information
Showing
6 changed files
with
30 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from requests.exceptions import RequestException | ||
from zgw_consumers.constants import APITypes | ||
|
||
from open_inwoner.accounts.models import User | ||
from open_inwoner.accounts.tests.factories import ( | ||
DigidUserFactory, | ||
eHerkenningUserFactory, | ||
|
@@ -39,13 +38,11 @@ def setUpServices(cls): | |
|
||
class MockAPIReadPatchData(MockAPIData): | ||
def __init__(self): | ||
User.objects.filter(email="[email protected]").delete() | ||
self.user = DigidUserFactory( | ||
email="[email protected]", | ||
phonenumber="0100000000", | ||
) | ||
|
||
User.objects.filter(kvk="12345678").delete() | ||
self.eherkenning_user = eHerkenningUserFactory( | ||
email="[email protected]", | ||
kvk="12345678", | ||
|
@@ -107,14 +104,14 @@ def install_mocks_eherkenning(self, m, use_rsin=True) -> "MockAPIReadPatchData": | |
|
||
class MockAPIReadData(MockAPIData): | ||
def __init__(self): | ||
User.objects.filter(bsn="100000001").delete() | ||
self.user = DigidUserFactory( | ||
bsn="100000001", | ||
) | ||
User.objects.filter(kvk="12345678").delete() | ||
|
||
self.eherkenning_user = eHerkenningUserFactory( | ||
kvk="12345678", | ||
rsin="000000000", | ||
email="[email protected]", | ||
) | ||
|
||
self.klant = generate_oas_component_cached( | ||
|
@@ -310,11 +307,9 @@ def install_mocks(self, m, link_objectcontactmomenten=False) -> "MockAPIReadData | |
|
||
class MockAPICreateData(MockAPIData): | ||
def __init__(self): | ||
User.objects.filter(bsn="100000001").delete() | ||
self.user = DigidUserFactory( | ||
bsn="100000001", | ||
) | ||
User.objects.filter(kvk="12345678").delete() | ||
self.eherkenning_user = eHerkenningUserFactory( | ||
kvk="12345678", | ||
rsin="000000000", | ||
|
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