Skip to content

mypy testing issues from tests #5

Description

@epeisach

export MYPYPATH=pwd/src

at top level
then

% mypy -p onedep_lib -p tests
tests/unit/apis/deposit/test_stub_api_client.py:21: error: Argument "created" to "WwPDBDeposition" has incompatible type "str"; expected "datetime" [arg-type]
tests/unit/apis/deposit/test_stub_api_client.py:22: error: Argument "last_login" to "WwPDBDeposition" has incompatible type "str"; expected "datetime" [arg-type]
tests/unit/apis/deposit/test_stub_api_client.py:24: error: Argument "status" to "WwPDBDeposition" has incompatible type "str"; expected "Status" [arg-type]
tests/unit/apis/deposit/test_stub_api_client.py:33: error: Argument "created" to "DepositedFile" has incompatible type "str"; expected "datetime" [arg-type]
tests/unit/apis/deposit/test_stub_api_client.py:74: error: Argument "date" to "DepositStatus" has incompatible type "str"; expected "datetime" [arg-type]
tests/unit/apis/deposit/test_stub_api_client.py:84: error: Argument "date" to "DepositStatus" has incompatible type "str"; expected "datetime" [arg-type]
tests/unit/apis/deposit/test_http_api_client.py:19: error: Need type annotation for "_DEPOSIT_RESPONSE" [var-annotated]
tests/unit/apis/deposit/test_http_api_client.py:72: error: Argument "auth_provider" to "HttpApiClient" has incompatible type "StubAuthProvider"; expected "AuthProvider | None" [arg-type]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions