Skip to content

Commit

Permalink
Integrate license to all tests/ python files
Browse files Browse the repository at this point in the history
  • Loading branch information
boot-sandre committed Oct 20, 2023
1 parent 697927d commit 055f72d
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions tests/account/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions tests/account/test_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.contrib.auth import get_user_model
from apps.account.utils.token import encode_token
from main.api import api
Expand Down
7 changes: 7 additions & 0 deletions tests/account/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.test.client import RequestFactory
from apps.account.forms.registration import RegistrationForm
from apps.account.utils.email import email_activation_token
Expand Down
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import pytest


Expand Down
7 changes: 7 additions & 0 deletions tests/endpoint/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions tests/endpoint/test_api_agenda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from skii.endpoint.routers.agenda import MsgErrorStudent
from skii.platform.models.event import LessonEvent
from tests.testcase import SkiiControllerTestCase
Expand Down
7 changes: 7 additions & 0 deletions tests/endpoint/test_api_rest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from skii.platform.schemas.resource import LocationSaveContract
from ..testcase import SkiiTestCase
from skii.platform.schemas.agent import TeacherSaveContract, StudentSaveContract
Expand Down
7 changes: 7 additions & 0 deletions tests/endpoint/test_skii_api_testcase.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from django.urls import reverse_lazy

from skii.platform.schemas.resource import LocationSaveContract
Expand Down
7 changes: 7 additions & 0 deletions tests/platform/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
7 changes: 7 additions & 0 deletions tests/platform/test_controllers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from tests.testcase import SkiiControllerTestCase


Expand Down
7 changes: 7 additions & 0 deletions tests/platform/test_date_range.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
import unittest

from skii.platform.models.agent import TeacherAgent
Expand Down
7 changes: 7 additions & 0 deletions tests/platform/test_models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from skii.platform.schemas.resource import LocationContract
from ..testcase import SkiiTestCase

Expand Down
7 changes: 7 additions & 0 deletions tests/test_ninja_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from main.api import api


Expand Down
7 changes: 7 additions & 0 deletions tests/test_testcase.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from .testcase import SkiiTestCase


Expand Down
7 changes: 7 additions & 0 deletions tests/testcase.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright © Simon ANDRÉ <[email protected]> synw (https://github.com/synw/)
# project: SkiiSchoolPlatform
# github: https://github.com/boot-sandre/skii-school-platform/
# template: https://github.com/synw/django-spaninja
from datetime import datetime, timedelta, time, UTC, date
from typing import Dict, List, Literal, Any, Optional

Expand Down

0 comments on commit 055f72d

Please sign in to comment.