-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated imports from a few more apps
- Loading branch information
Showing
7 changed files
with
19 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import json | ||
import unittest | ||
from datetime import datetime, timedelta, timezone | ||
from typing import List, Optional | ||
from typing import Optional | ||
|
||
from django.contrib.auth import get_user_model | ||
from django.test import RequestFactory | ||
|
@@ -42,7 +42,7 @@ def _working_time(event: dict) -> int: | |
return payload["working_time"] | ||
|
||
@staticmethod | ||
def _deserialize(events: List[dict], previous_event: Optional[dict] = None) -> List[dict]: | ||
def _deserialize(events: list[dict], previous_event: Optional[dict] = None) -> list[dict]: | ||
request = RequestFactory().post("/api/events") | ||
request.user = get_user_model()(id=100, username="testuser", email="[email protected]") | ||
request.iam_context = { | ||
|
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