diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 321b08c1..f76b4207 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -90,6 +90,7 @@ jobs: - name: CVAT SDK. Build run: | + docker load --input /tmp/cvat_server/image.tar docker run --rm -v ${PWD}/cvat-sdk/schema/:/transfer \ --entrypoint /bin/bash -u root cvat/server \ -c 'python manage.py spectacular --file /transfer/schema.yml' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c50af7a6..bc425ffe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -91,6 +91,7 @@ jobs: - name: CVAT SDK. Build run: | + docker load --input /tmp/cvat_server/image.tar docker run --rm -v ${PWD}/cvat-sdk/schema/:/transfer \ --entrypoint /bin/bash -u root cvat/server \ -c 'python manage.py spectacular --file /transfer/schema.yml' diff --git a/cvat-sdk/cvat_sdk/core/client.py b/cvat-sdk/cvat_sdk/core/client.py index 4f772d7b..ba34572a 100644 --- a/cvat-sdk/cvat_sdk/core/client.py +++ b/cvat-sdk/cvat_sdk/core/client.py @@ -143,7 +143,7 @@ class Client: def login(self, credentials: Tuple[str, str]) -> None: (auth, _) = self.api_client.auth_api.create_login( - models.LoginRequest(username=credentials[0], password=credentials[1]) + models.LoginSerializerExRequest(username=credentials[0], password=credentials[1]) ) assert "sessionid" in self.api_client.cookies diff --git a/tests/python/rest_api/test_auth.py b/tests/python/rest_api/test_auth.py index c9c632a0..7bf104f1 100644 --- a/tests/python/rest_api/test_auth.py +++ b/tests/python/rest_api/test_auth.py @@ -27,7 +27,7 @@ class TestTokenAuth: @staticmethod def login(client: ApiClient, username: str) -> models.Token: (auth, _) = client.auth_api.create_login( - models.LoginRequest(username=username, password=USER_PASS) + models.LoginSerializerExRequest(username=username, password=USER_PASS) ) client.set_default_header("Authorization", "Token " + auth.key) return auth