Skip to content

Commit

Permalink
Update black
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Sep 29, 2020
1 parent 5e7748c commit 2781c26
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -2,11 +2,11 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
3 changes: 2 additions & 1 deletion tests/serialize/test_simple.py
Expand Up @@ -81,7 +81,8 @@ class Error(halogen.Schema):
message = halogen.Attr(attr=lambda error, language: error["message"][language])

error = Error.serialize(
{"message": {"dut": "Ongeldig e-mailadres", "eng": "Invalid email address"}}, language="dut",
{"message": {"dut": "Ongeldig e-mailadres", "eng": "Invalid email address"}},
language="dut",
)

assert error == {"message": "Ongeldig e-mailadres"}
7 changes: 3 additions & 4 deletions tests/test_types.py
Expand Up @@ -69,9 +69,7 @@ def test_isoutcdatetime_bc():
assert type_.deserialize("1799-12-31T23:00:00Z") == value.replace(microsecond=0)


@pytest.mark.parametrize(
"value", ["01.01.1981 11:11:11", "123x3"],
)
@pytest.mark.parametrize("value", ["01.01.1981 11:11:11", "123x3"])
def test_isoutcdatetime_wrong(value):
"""Test iso datetime when wrong value is passed."""
type_ = types.ISOUTCDateTime()
Expand Down Expand Up @@ -187,7 +185,8 @@ def test_amount_serialize():
def test_nullable_type():

nested_type = mock.MagicMock(
serialize=mock.MagicMock(return_value="serialize"), deserialize=mock.MagicMock(return_value="deserialize"),
serialize=mock.MagicMock(return_value="serialize"),
deserialize=mock.MagicMock(return_value="deserialize"),
)

nullable = types.Nullable(nested_type)
Expand Down

0 comments on commit 2781c26

Please sign in to comment.