Skip to content

Commit e0fc7b0

Browse files
committed
Add ip field tests and fix authors.
1 parent 3f03d05 commit e0fc7b0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ Contributors (chronological)
8181
- Sebastien Lovergne `@TheBigRoomXXL <https://github.com/TheBigRoomXXL>`_
8282
- Luna Lovegood `@duchuyvp <https://github.com/duchuyvp>`_
8383
- Tobias Kolditz `@kolditz-senec <https://github.com/kolditz-senec>`_
84-
- Christian Proud `@cjproud <https://github.com/cjproud>`
84+
- Christian Proud `@cjproud <https://github.com/cjproud>`_

tests/test_ext_marshmallow_field.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def test_field2choices_preserving_order(openapi):
3232
(fields.TimeDelta, "integer"),
3333
(fields.Email, "string"),
3434
(fields.URL, "string"),
35+
(fields.IP, "string"),
36+
(fields.IPv4, "string"),
37+
(fields.IPv6, "string"),
3538
# Custom fields inherit types from their parents
3639
(CustomStringField, "string"),
3740
(CustomIntegerField, "integer"),
@@ -66,6 +69,9 @@ def test_formatted_field_translates_to_array(ListClass, spec_fixture):
6669
(fields.Date, "date"),
6770
(fields.Email, "email"),
6871
(fields.URL, "url"),
72+
(fields.IP, "ip"),
73+
(fields.IPv4, "ipv4"),
74+
(fields.IPv6, "ipv6"),
6975
],
7076
)
7177
def test_field2property_formats(FieldClass, expected_format, spec_fixture):

0 commit comments

Comments
 (0)