Skip to content

Commit 1bda1b4

Browse files
author
Gitlab Tagging Bot
committed
chore(tests): fix Marshmallow deprecation warning
For some reason, Marshmallow does not want the `key` and `value` fields of a `fields.Mapping()` to be defined using keyword arguments. Remove the `--disable-pytest-warnings` flag from the CI so that we do not miss them.
1 parent 45d1796 commit 1bda1b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Test with pytest
6565
run: |
66-
pipenv run coverage run --source pygitguardian -m pytest --disable-pytest-warnings
66+
pipenv run coverage run --source pygitguardian -m pytest
6767
pipenv run coverage report --fail-under=80
6868
pipenv run coverage xml
6969
env:

pygitguardian/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ class HoneytokenResponseSchema(BaseSchema):
505505
revoker_id = fields.Int(allow_none=True)
506506
creator_api_token_id = fields.String(allow_none=True)
507507
revoker_api_token_id = fields.String(allow_none=True)
508-
token = fields.Mapping(key=fields.String(), value=fields.String())
508+
token = fields.Mapping(fields.String(), fields.String())
509509
tags = fields.List(fields.String())
510510

511511
@post_load

0 commit comments

Comments
 (0)