Commit ebe14e50 authored by Martin Juhas's avatar Martin Juhas
Browse files

end of testing

parent c8d7dadc
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
from typing import List
from dataclasses import dataclass
from typing import List, Optional


class ConfigOverrideInput:
@@ -9,8 +10,9 @@ class ConfigOverrideInput:
    custom_team_names: List[str]


@dataclass
class CreateExerciseInput:
    definition_id: str
    team_count: int
    name: str
    config_override: ConfigOverrideInput
    config_override: Optional[ConfigOverrideInput]
+0 −2
Original line number Diff line number Diff line
@@ -8,8 +8,6 @@ from rest_framework.request import Request

from common_lib.exceptions import ExerciseOperationException
from common_lib.logger import logger, log_user_msg
from common_lib.schema.enums import ExerciseEventTypeEnum

from common_lib.utils import get_model
from exercise.graphql_inputs import CreateExerciseInput, ConfigOverrideInput
from exercise.models import (
+21 −20
Original line number Diff line number Diff line
@@ -731,19 +731,20 @@ tests = ["hypothesis (==4.23)", "pytest (>=3.10,<4.0)", "pytest-asyncio (>=0.8,<

[[package]]
name = "django"
version = "3.2.25"
description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design."
version = "4.2.16"
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."
optional = false
python-versions = ">=3.6"
python-versions = ">=3.8"
files = [
    {file = "Django-3.2.25-py3-none-any.whl", hash = "sha256:a52ea7fcf280b16f7b739cec38fa6d3f8953a5456986944c3ca97e79882b4e38"},
    {file = "Django-3.2.25.tar.gz", hash = "sha256:7ca38a78654aee72378594d63e51636c04b8e28574f5505dff630895b5472777"},
    {file = "Django-4.2.16-py3-none-any.whl", hash = "sha256:1ddc333a16fc139fd253035a1606bb24261951bbc3a6ca256717fa06cc41a898"},
    {file = "Django-4.2.16.tar.gz", hash = "sha256:6f1616c2786c408ce86ab7e10f792b8f15742f7b7b7460243929cb371e7f1dad"},
]

[package.dependencies]
asgiref = ">=3.3.2,<4"
pytz = "*"
sqlparse = ">=0.2.2"
asgiref = ">=3.6.0,<4"
"backports.zoneinfo" = {version = "*", markers = "python_version < \"3.9\""}
sqlparse = ">=0.3.1"
tzdata = {version = "*", markers = "sys_platform == \"win32\""}

[package.extras]
argon2 = ["argon2-cffi (>=19.1.0)"]
@@ -1766,17 +1767,6 @@ files = [
[package.extras]
cli = ["click (>=5.0)"]

[[package]]
name = "pytz"
version = "2024.1"
description = "World timezone definitions, modern and historical"
optional = false
python-versions = "*"
files = [
    {file = "pytz-2024.1-py2.py3-none-any.whl", hash = "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"},
    {file = "pytz-2024.1.tar.gz", hash = "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812"},
]

[[package]]
name = "pywin32"
version = "306"
@@ -2273,6 +2263,17 @@ files = [
    {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"},
]

[[package]]
name = "tzdata"
version = "2024.2"
description = "Provider of IANA time zone data"
optional = false
python-versions = ">=2"
files = [
    {file = "tzdata-2024.2-py2.py3-none-any.whl", hash = "sha256:a48093786cdcde33cad18c2555e8532f34422074448fbc874186f0abd79565cd"},
    {file = "tzdata-2024.2.tar.gz", hash = "sha256:7d85cc416e9382e69095b7bdf4afd9e3880418a2413feec7069d533d6b4e31cc"},
]

[[package]]
name = "urllib3"
version = "2.2.2"
@@ -2661,4 +2662,4 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
[metadata]
lock-version = "2.0"
python-versions = "^3.8"
content-hash = "0ef1a54f69f242be2eaa0b7c3bcefcce765f198ed994849ba82956af02bc9364"
content-hash = "99654a77b586c34b8b7c0259a9962c9168ca3a14b559dec186d3357c3e397251"
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.8"
django = "^3.2.17"
django = "^4.2.16"
djangorestframework = "^3.13.1"
django-cors-headers = "^3.11.0"
yamlize = "^0.7.1"
+5 −4
Original line number Diff line number Diff line
@@ -8,18 +8,19 @@ https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
import os

import django
from channels.routing import ProtocolTypeRouter
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ttxbackend.settings")
# initialize the django settings
django.setup()

from ttxbackend.routing import websocket_urlpatterns

application = ProtocolTypeRouter(
    {
        "http": get_asgi_application(),
        # "websocket": AuthMiddlewareStack(
        #    URLRouter(ttxbackend.routing.websocket_urlpatterns)
        # ),
        "websocket": AuthMiddlewareStack(URLRouter(websocket_urlpatterns)),
    }
)
Loading